mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed slider filter preloader;
- fixed redirect_to and approve user status on registration;
This commit is contained in:
@@ -1374,6 +1374,9 @@ jQuery(document.body).ready( function() {
|
||||
},
|
||||
stop: function( event, ui ) {
|
||||
if ( ! um_is_directory_busy( directory ) ) {
|
||||
|
||||
um_members_show_preloader( directory );
|
||||
|
||||
um_set_url_from_data( directory, 'filter_' + filter_name + '_from', ui.values[0] );
|
||||
um_set_url_from_data( directory, 'filter_' + filter_name + '_to', ui.values[1] );
|
||||
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -175,11 +175,6 @@ function um_check_user_status( $user_id, $args ) {
|
||||
|
||||
do_action( "track_{$status}_user_registration" );
|
||||
|
||||
// Priority redirect
|
||||
if ( isset( $args['redirect_to'] ) ) {
|
||||
exit( wp_safe_redirect( urldecode( $args['redirect_to'] ) ) );
|
||||
}
|
||||
|
||||
if ( $status == 'approved' ) {
|
||||
|
||||
UM()->user()->auto_login( $user_id );
|
||||
@@ -206,6 +201,11 @@ function um_check_user_status( $user_id, $args ) {
|
||||
*/
|
||||
do_action( 'um_registration_after_auto_login', $user_id );
|
||||
|
||||
// Priority redirect
|
||||
if ( isset( $args['redirect_to'] ) ) {
|
||||
exit( wp_safe_redirect( urldecode( $args['redirect_to'] ) ) );
|
||||
}
|
||||
|
||||
if ( um_user( 'auto_approve_act' ) == 'redirect_url' && um_user( 'auto_approve_url' ) !== '' ) {
|
||||
exit( wp_redirect( um_user( 'auto_approve_url' ) ) );
|
||||
}
|
||||
@@ -214,9 +214,7 @@ function um_check_user_status( $user_id, $args ) {
|
||||
exit( wp_redirect( um_user_profile_url() ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ( $status != 'approved' ) {
|
||||
} else {
|
||||
|
||||
if ( um_user( $status . '_action' ) == 'redirect_url' && um_user( $status . '_url' ) != '' ) {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user