Update 1.2.2

This commit is contained in:
ultimatemember
2015-04-15 16:59:27 +02:00
parent 5e281fbeaf
commit 7b9b59ea8d
32 changed files with 1375 additions and 135 deletions
+8 -2
View File
@@ -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();