From 3b32e4f435637bdf50b02ad9d7605eb36a5a2cc7 Mon Sep 17 00:00:00 2001 From: azaozz Date: Mon, 22 Sep 2008 03:27:48 +0000 Subject: [PATCH] Bulk delete: only delete when Apply button is clicked, move Advanced Options to separate form git-svn-id: http://svn.automattic.com/wordpress/trunk@8948 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/categories.php | 8 ++++---- wp-admin/edit-link-categories.php | 9 ++++----- wp-admin/edit-pages.php | 20 +++++++++----------- wp-admin/edit-tags.php | 9 +++++---- wp-admin/edit.php | 16 +++++++--------- wp-admin/link-manager.php | 11 ++++++----- wp-admin/upload.php | 10 +++++----- wp-admin/users.php | 6 ++++-- 8 files changed, 44 insertions(+), 45 deletions(-) diff --git a/wp-admin/categories.php b/wp-admin/categories.php index d38cd0c1ff..c75bbf95b4 100644 --- a/wp-admin/categories.php +++ b/wp-admin/categories.php @@ -133,8 +133,8 @@ $messages[5] = __('Category not updated.'); endif; ?>
-
+
@@ -145,12 +145,14 @@ endif; ?>
- + +

Add New)') : __('Manage Tags'), '#addcat' ); ?>


+
- -
diff --git a/wp-admin/edit-link-categories.php b/wp-admin/edit-link-categories.php index d73f9b0efb..29fcbb1076 100644 --- a/wp-admin/edit-link-categories.php +++ b/wp-admin/edit-link-categories.php @@ -74,8 +74,7 @@ endif; ?>
-
- +
@@ -86,12 +85,14 @@ endif; ?>
-
+ +

Add New)') : __('Manage Tags'), '#addcat' ); ?>


+
- -
diff --git a/wp-admin/edit-pages.php b/wp-admin/edit-pages.php index 890bdcabbc..a4f641a24f 100644 --- a/wp-admin/edit-pages.php +++ b/wp-admin/edit-pages.php @@ -10,10 +10,10 @@ require_once('admin.php'); // Handle bulk deletes -if ( isset($_GET['action']) && isset($_GET['delete']) ) { +if ( isset($_GET['action']) && isset($_GET['post']) && isset($_GET['doaction']) ) { check_admin_referer('bulk-pages'); if ( $_GET['action'] == 'delete' ) { - foreach( (array) $_GET['delete'] as $post_id_del ) { + foreach( (array) $_GET['post'] as $post_id_del ) { $post_del = & get_post($post_id_del); if ( !current_user_can('delete_page', $post_id_del) ) @@ -86,8 +86,7 @@ require_once('admin-header.php');
-
- +
@@ -98,7 +97,8 @@ require_once('admin-header.php');
-
+ +

Add New)|You can reorder these: 1: Pages, 2: by {s}, 3: matching {s}' ), $post_status_label, $h2_author, $h2_search, 'page-new.php' ); ?>

+