mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Exit after wp_redirect(). See #15558
git-svn-id: https://develop.svn.wordpress.org/trunk@16584 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c137fac98d
commit
23638e8d67
@ -51,9 +51,6 @@ if ( ! empty($wp_roles->use_db) ) {
|
||||
|
||||
$action = $wp_list_table->current_action();
|
||||
|
||||
if ( isset( $_GET['action'] ) && 'update-site' == $_GET['action'] )
|
||||
wp_redirect( wp_get_referer() );
|
||||
|
||||
if ( $action ) {
|
||||
switch_to_blog( $id );
|
||||
|
||||
@ -122,6 +119,12 @@ if ( $action ) {
|
||||
|
||||
restore_current_blog();
|
||||
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)' ) ) );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user