From ef90a47ff840115a470131fb841811dcfe52194e Mon Sep 17 00:00:00 2001 From: westi Date: Fri, 3 Dec 2010 12:37:43 +0000 Subject: [PATCH] Always exit after we redirect. git-svn-id: http://svn.automattic.com/wordpress/trunk@16708 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/network/edit.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/wp-admin/network/edit.php b/wp-admin/network/edit.php index 2d55d414db..be278c262c 100644 --- a/wp-admin/network/edit.php +++ b/wp-admin/network/edit.php @@ -221,10 +221,10 @@ switch ( $_GET['action'] ) { } wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => $blogfunction ), wp_get_referer() ) ); - exit(); } else { wp_redirect( network_admin_url( 'sites.php' ) ); } + exit(); break; case 'archiveblog': @@ -343,6 +343,7 @@ switch ( $_GET['action'] ) { '; require_once( '../admin-footer.php' ); - exit(); - } else { + } else { wp_redirect( network_admin_url( 'users.php' ) ); } + exit(); break; case 'allusers': @@ -420,10 +421,10 @@ switch ( $_GET['action'] ) { } wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => $userfunction ), wp_get_referer() ) ); - exit(); } else { wp_redirect( network_admin_url( 'users.php' ) ); } + exit(); break; case 'dodelete': @@ -459,12 +460,14 @@ switch ( $_GET['action'] ) { $deletefunction = 'all_delete'; wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => $deletefunction ), network_admin_url( 'users.php' ) ) ); + exit(); break; default: // Let plugins use us as a post handler easily do_action( 'network_admin_edit_' . $_GET['action'] ); wp_redirect( network_admin_url( 'index.php' ) ); + exit(); break; } ?>