Exit after redirect.

git-svn-id: http://svn.automattic.com/wordpress/trunk@4468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-11-15 00:02:28 +00:00
parent 3e20ee2b0c
commit e55c8a5dc9
4 changed files with 14 additions and 2 deletions

View File

@ -20,6 +20,7 @@ case 'addcat':
} else {
wp_redirect('categories.php?message=4#addcat');
}
exit;
break;
case 'delete':
@ -41,6 +42,7 @@ case 'delete':
wp_delete_category($cat_ID);
wp_redirect('categories.php?message=2');
exit;
break;
@ -63,6 +65,7 @@ case 'editedcat':
wp_update_category($_POST);
wp_redirect('categories.php?message=3');
exit;
break;
default:

View File

@ -202,7 +202,7 @@ case 'editedcomment':
$location = ( empty($_POST['referredby']) ? "edit.php?p=$comment_post_ID&c=1" : $_POST['referredby'] ) . '#comment-' . $comment_ID;
$location = apply_filters('comment_edit_redirect', $location, $comment_ID);
wp_redirect($location);
exit();
break;
default:
break;

View File

@ -35,6 +35,7 @@ switch ($action) {
}
wp_redirect("$this_file?deleted=$deleted");
exit;
break;
case 'move' :
@ -54,6 +55,7 @@ switch ($action) {
//$q = $wpdb->query("update $wpdb->links SET link_category='$category' WHERE link_id IN ($all_links)");
wp_redirect($this_file);
exit;
break;
case 'add' :
@ -62,6 +64,7 @@ switch ($action) {
add_link();
wp_redirect(wp_get_referer().'?added=true');
exit;
break;
case 'save' :
@ -84,6 +87,7 @@ switch ($action) {
wp_delete_link($link_id);
wp_redirect($this_file);
exit;
break;
case 'edit' :

View File

@ -145,6 +145,7 @@ case 'promote':
}
wp_redirect(add_query_arg('update', $update, $redirect));
exit();
break;
@ -154,6 +155,7 @@ case 'dodelete':
if ( empty($_POST['users']) ) {
wp_redirect($redirect);
exit();
}
if ( !current_user_can('delete_users') )
@ -184,6 +186,7 @@ case 'dodelete':
$redirect = add_query_arg( array('delete_count' => $delete_count, 'update' => $update), $redirect);
wp_redirect($redirect);
exit();
break;
@ -191,8 +194,10 @@ case 'delete':
check_admin_referer('bulk-users');
if ( empty($_POST['users']) )
if ( empty($_POST['users']) ) {
wp_redirect($redirect);
exit();
}
if ( !current_user_can('delete_users') )
$errors = new WP_Error('edit_users', __('You can’t delete users.'));