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:
PeteMall 2010-11-25 09:25:50 +00:00
parent a92ac54131
commit a3a57860c4
1 changed files with 6 additions and 3 deletions

View File

@ -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)' ) ) );