mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 22:23:37 +09:00
Update 1.2.2
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
}
|
||||
|
||||
if ( isset($_REQUEST['uid'])){
|
||||
$uid = $_REQUEST['uid'];
|
||||
$uid = $_REQUEST['uid'];
|
||||
}
|
||||
|
||||
switch( $_REQUEST['um_action'] ) {
|
||||
@@ -26,7 +26,7 @@
|
||||
$uid = ( isset( $_REQUEST['uid'] ) ) ? $_REQUEST['uid'] : 0;
|
||||
do_action('um_action_user_request_hook', $_REQUEST['um_action'], $uid);
|
||||
break;
|
||||
|
||||
|
||||
case 'edit':
|
||||
$ultimatemember->fields->editing = true;
|
||||
if ( !um_can_edit_my_profile() ) {
|
||||
@@ -35,6 +35,12 @@
|
||||
}
|
||||
break;
|
||||
|
||||
case 'um_switch_user':
|
||||
if ( !current_user_can('delete_users') ) return;
|
||||
$ultimatemember->user->auto_login( $_REQUEST['uid'] );
|
||||
exit( wp_redirect( $ultimatemember->permalinks->get_current_url( true ) ) );
|
||||
break;
|
||||
|
||||
case 'um_reject_membership':
|
||||
um_fetch_user( $uid );
|
||||
$ultimatemember->user->reject();
|
||||
|
||||
Reference in New Issue
Block a user