- fixed member directory sorting;

- fixed member directory list dropdown init after changing view type;
- fixed registration form;
This commit is contained in:
nikitasinelnikov
2020-07-14 04:21:03 +03:00
parent db2bc4a855
commit 88c3720106
6 changed files with 13 additions and 4 deletions
+2
View File
@@ -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 );
});
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -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' ) );
}
}
+3
View File
@@ -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 );
+1 -1
View File
@@ -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 ];
+5 -1
View File
@@ -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 ); ?>">