Exit after wp_redirect(). See #15558
git-svn-id: http://svn.automattic.com/wordpress/trunk@16584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a92ac54131
commit
a3a57860c4
@ -51,9 +51,6 @@ if ( ! empty($wp_roles->use_db) ) {
|
|||||||
|
|
||||||
$action = $wp_list_table->current_action();
|
$action = $wp_list_table->current_action();
|
||||||
|
|
||||||
if ( isset( $_GET['action'] ) && 'update-site' == $_GET['action'] )
|
|
||||||
wp_redirect( wp_get_referer() );
|
|
||||||
|
|
||||||
if ( $action ) {
|
if ( $action ) {
|
||||||
switch_to_blog( $id );
|
switch_to_blog( $id );
|
||||||
|
|
||||||
@ -122,6 +119,12 @@ if ( $action ) {
|
|||||||
|
|
||||||
restore_current_blog();
|
restore_current_blog();
|
||||||
wp_redirect( add_query_arg( 'update', $update, wp_get_referer() ) );
|
wp_redirect( add_query_arg( 'update', $update, wp_get_referer() ) );
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( isset( $_GET['action'] ) && 'update-site' == $_GET['action'] ) {
|
||||||
|
wp_redirect( wp_get_referer() );
|
||||||
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
add_screen_option( 'per_page', array( 'label' => _x( 'Users', 'users per page (screen options)' ) ) );
|
add_screen_option( 'per_page', array( 'label' => _x( 'Users', 'users per page (screen options)' ) ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user