Always exit after we redirect.

git-svn-id: http://svn.automattic.com/wordpress/trunk@16708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-12-03 12:37:43 +00:00
parent 4b3fa56caf
commit ef90a47ff8
1 changed files with 7 additions and 4 deletions

View File

@ -221,10 +221,10 @@ switch ( $_GET['action'] ) {
} }
wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => $blogfunction ), wp_get_referer() ) ); wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => $blogfunction ), wp_get_referer() ) );
exit();
} else { } else {
wp_redirect( network_admin_url( 'sites.php' ) ); wp_redirect( network_admin_url( 'sites.php' ) );
} }
exit();
break; break;
case 'archiveblog': case 'archiveblog':
@ -343,6 +343,7 @@ switch ( $_GET['action'] ) {
</body> </body>
</html> </html>
<?php <?php
exit();
break; break;
// Users // Users
@ -361,10 +362,10 @@ switch ( $_GET['action'] ) {
confirm_delete_users( $_POST['allusers'] ); confirm_delete_users( $_POST['allusers'] );
echo '</div>'; echo '</div>';
require_once( '../admin-footer.php' ); require_once( '../admin-footer.php' );
exit();
} else { } else {
wp_redirect( network_admin_url( 'users.php' ) ); wp_redirect( network_admin_url( 'users.php' ) );
} }
exit();
break; break;
case 'allusers': case 'allusers':
@ -420,10 +421,10 @@ switch ( $_GET['action'] ) {
} }
wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => $userfunction ), wp_get_referer() ) ); wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => $userfunction ), wp_get_referer() ) );
exit();
} else { } else {
wp_redirect( network_admin_url( 'users.php' ) ); wp_redirect( network_admin_url( 'users.php' ) );
} }
exit();
break; break;
case 'dodelete': case 'dodelete':
@ -459,12 +460,14 @@ switch ( $_GET['action'] ) {
$deletefunction = 'all_delete'; $deletefunction = 'all_delete';
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();
break; break;
default: default:
// Let plugins use us as a post handler easily // Let plugins use us as a post handler easily
do_action( 'network_admin_edit_' . $_GET['action'] ); do_action( 'network_admin_edit_' . $_GET['action'] );
wp_redirect( network_admin_url( 'index.php' ) ); wp_redirect( network_admin_url( 'index.php' ) );
exit();
break; break;
} }
?> ?>