mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed member directory sorting;
- fixed member directory list dropdown init after changing view type; - fixed registration form;
This commit is contained in:
@@ -693,6 +693,8 @@ jQuery(document.body).ready( function() {
|
||||
directory.data( 'view_type', layout );
|
||||
|
||||
um_build_template( directory, data );
|
||||
|
||||
um_init_new_dropdown();
|
||||
}
|
||||
um_members_hide_preloader( directory );
|
||||
});
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -533,7 +533,7 @@ function um_submit_form_errors_hook_( $args ) {
|
||||
|
||||
if ( isset( $array['force_good_pass'] ) && $array['force_good_pass'] == 1 ) {
|
||||
if ( ! UM()->validation()->strong_pass( $args[ $key ] ) ) {
|
||||
UM()->form()->add_error( $key, __('Your password must contain at least one lowercase letter, one capital letter and one number', 'ultimate-member' ) );
|
||||
UM()->form()->add_error( $key, __( 'Your password must contain at least one lowercase letter, one capital letter and one number', 'ultimate-member' ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1033,6 +1033,9 @@ function um_filtered_social_link( $key, $match ) {
|
||||
*/
|
||||
function um_filtered_value( $key, $data = false ) {
|
||||
$value = um_user( $key );
|
||||
if ( is_array( $value ) ) {
|
||||
$value = add_magic_quotes( $value );
|
||||
}
|
||||
|
||||
if ( ! $data ) {
|
||||
$data = UM()->builtin()->get_specific_field( $key );
|
||||
|
||||
@@ -79,7 +79,7 @@ if ( ! empty( $args['enable_sorting'] ) ) {
|
||||
$sorting_options_prepared[] = $default_sorting;
|
||||
|
||||
$label = $default_sorting;
|
||||
if ( ! empty( $args['sortby_custom_label'] ) ) {
|
||||
if ( ! empty( $args['sortby_custom_label'] ) && 'other' == $args['sortby'] ) {
|
||||
$label = $args['sortby_custom_label'];
|
||||
} elseif ( ! empty( $all_sorting_options[ $default_sorting ] ) ) {
|
||||
$label = $all_sorting_options[ $default_sorting ];
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
if ( ! is_user_logged_in() ) {
|
||||
um_reset_user();
|
||||
} ?>
|
||||
|
||||
<div class="um <?php echo esc_attr( $this->get_class( $mode ) ); ?> um-<?php echo esc_attr( $form_id ); ?>">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user