Exit after redirect.
git-svn-id: https://develop.svn.wordpress.org/trunk@4468 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2aeba54363
commit
4b228e44c9
@ -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:
|
||||
|
@ -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;
|
||||
|
@ -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' :
|
||||
|
@ -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.'));
|
||||
|
Loading…
Reference in New Issue
Block a user