In `wp-admin/users.php`, `break` is unreachabled after `exit`.
See #27882. Built from https://develop.svn.wordpress.org/trunk@28315 git-svn-id: http://core.svn.wordpress.org/trunk@28143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
402d8b80fb
commit
5f27d149a3
|
@ -137,8 +137,6 @@ case 'promote':
|
||||||
wp_redirect(add_query_arg('update', $update, $redirect));
|
wp_redirect(add_query_arg('update', $update, $redirect));
|
||||||
exit();
|
exit();
|
||||||
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'dodelete':
|
case 'dodelete':
|
||||||
if ( is_multisite() )
|
if ( is_multisite() )
|
||||||
wp_die( __('User deletion is not allowed from this screen.') );
|
wp_die( __('User deletion is not allowed from this screen.') );
|
||||||
|
@ -188,8 +186,6 @@ case 'dodelete':
|
||||||
wp_redirect($redirect);
|
wp_redirect($redirect);
|
||||||
exit();
|
exit();
|
||||||
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'delete':
|
case 'delete':
|
||||||
if ( is_multisite() )
|
if ( is_multisite() )
|
||||||
wp_die( __('User deletion is not allowed from this screen.') );
|
wp_die( __('User deletion is not allowed from this screen.') );
|
||||||
|
@ -293,8 +289,6 @@ case 'doremove':
|
||||||
wp_redirect($redirect);
|
wp_redirect($redirect);
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'remove':
|
case 'remove':
|
||||||
|
|
||||||
check_admin_referer('bulk-users');
|
check_admin_referer('bulk-users');
|
||||||
|
|
Loading…
Reference in New Issue