In wp-admin/network/users.php
, break
is unreachabled after exit
.
See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28309 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
aa7cef0549
commit
1da6728dc0
@ -109,7 +109,6 @@ if ( isset( $_GET['action'] ) ) {
|
|||||||
wp_redirect( network_admin_url( 'users.php' ) );
|
wp_redirect( network_admin_url( 'users.php' ) );
|
||||||
}
|
}
|
||||||
exit();
|
exit();
|
||||||
break;
|
|
||||||
|
|
||||||
case 'allusers':
|
case 'allusers':
|
||||||
if ( !current_user_can( 'manage_network_users' ) )
|
if ( !current_user_can( 'manage_network_users' ) )
|
||||||
@ -135,7 +134,6 @@ if ( isset( $_GET['action'] ) ) {
|
|||||||
echo '</div>';
|
echo '</div>';
|
||||||
require_once( ABSPATH . 'wp-admin/admin-footer.php' );
|
require_once( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||||
exit();
|
exit();
|
||||||
break;
|
|
||||||
|
|
||||||
case 'spam':
|
case 'spam':
|
||||||
$user = get_userdata( $val );
|
$user = get_userdata( $val );
|
||||||
@ -172,7 +170,6 @@ if ( isset( $_GET['action'] ) ) {
|
|||||||
wp_redirect( $location );
|
wp_redirect( $location );
|
||||||
}
|
}
|
||||||
exit();
|
exit();
|
||||||
break;
|
|
||||||
|
|
||||||
case 'dodelete':
|
case 'dodelete':
|
||||||
check_admin_referer( 'ms-users-delete' );
|
check_admin_referer( 'ms-users-delete' );
|
||||||
@ -208,7 +205,6 @@ if ( isset( $_GET['action'] ) ) {
|
|||||||
|
|
||||||
wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => $deletefunction ), network_admin_url( 'users.php' ) ) );
|
wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => $deletefunction ), network_admin_url( 'users.php' ) ) );
|
||||||
exit();
|
exit();
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user