Version Description
Download this release
Release Info
Developer | sudar |
Plugin | Bulk Delete |
Version | 0.3 |
Comparing to | |
See all releases |
Code changes from version 0.2 to 0.3
trunk/bulk-delete.php → bulk-delete.php
RENAMED
@@ -4,7 +4,7 @@ Plugin Name: Bulk Delete
|
|
4 |
Plugin Script: bulk-delete.php
|
5 |
Plugin URI: http://sudarmuthu.com/wordpress/bulk-delete
|
6 |
Description: Bulk delete posts from selected categories or tags. Use it with caution.
|
7 |
-
Version: 0.
|
8 |
License: GPL
|
9 |
Author: Sudar
|
10 |
Author URI: http://sudarmuthu.com/
|
@@ -12,6 +12,7 @@ Author URI: http://sudarmuthu.com/
|
|
12 |
=== RELEASE NOTES ===
|
13 |
2009-02-02 - v0.1 - first version
|
14 |
2009-02-03 - v0.2 - Second release - Fixed issues with pagging
|
|
|
15 |
|
16 |
*/
|
17 |
|
@@ -33,7 +34,7 @@ if (!function_exists('smbd_request_handler')) {
|
|
33 |
case "bulk-delete-cats":
|
34 |
// delete by cats
|
35 |
$selected_cats = $_POST['smbd_cats'];
|
36 |
-
$posts = $wp_query->query(array('category__in'=>$selected_cats, 'post_type'=>'post', 'nopaging'=>'true'));
|
37 |
|
38 |
foreach ($posts as $post) {
|
39 |
wp_delete_post($post->ID);
|
@@ -44,7 +45,7 @@ if (!function_exists('smbd_request_handler')) {
|
|
44 |
case "bulk-delete-tags":
|
45 |
// delete by tags
|
46 |
$selected_tags = $_POST['smbd_tags'];
|
47 |
-
$posts = $wp_query->query(array('tag__in'=>$selected_tags, 'post_type'=>'post', 'nopaging'=>'true'));
|
48 |
|
49 |
foreach ($posts as $post) {
|
50 |
wp_delete_post($post->ID);
|
4 |
Plugin Script: bulk-delete.php
|
5 |
Plugin URI: http://sudarmuthu.com/wordpress/bulk-delete
|
6 |
Description: Bulk delete posts from selected categories or tags. Use it with caution.
|
7 |
+
Version: 0.3
|
8 |
License: GPL
|
9 |
Author: Sudar
|
10 |
Author URI: http://sudarmuthu.com/
|
12 |
=== RELEASE NOTES ===
|
13 |
2009-02-02 - v0.1 - first version
|
14 |
2009-02-03 - v0.2 - Second release - Fixed issues with pagging
|
15 |
+
2009-04-05 - v0.3 - Third release - Prevented drafts from deleted when only posts are selected
|
16 |
|
17 |
*/
|
18 |
|
34 |
case "bulk-delete-cats":
|
35 |
// delete by cats
|
36 |
$selected_cats = $_POST['smbd_cats'];
|
37 |
+
$posts = $wp_query->query(array('category__in'=>$selected_cats,'post_status'=>'publish', 'post_type'=>'post', 'nopaging'=>'true'));
|
38 |
|
39 |
foreach ($posts as $post) {
|
40 |
wp_delete_post($post->ID);
|
45 |
case "bulk-delete-tags":
|
46 |
// delete by tags
|
47 |
$selected_tags = $_POST['smbd_tags'];
|
48 |
+
$posts = $wp_query->query(array('tag__in'=>$selected_tags, 'post_status'=>'publish', 'post_type'=>'post', 'nopaging'=>'true'));
|
49 |
|
50 |
foreach ($posts as $post) {
|
51 |
wp_delete_post($post->ID);
|
trunk/readme.txt → readme.txt
RENAMED
@@ -3,7 +3,7 @@ Contributors: sudar
|
|
3 |
Tags: post, comment, delete, bulk, draft, revision, page
|
4 |
Requires at least: 2.5
|
5 |
Tested up to: 2.7.1
|
6 |
-
Stable tag: 0.
|
7 |
|
8 |
Bulk delete posts from selected categories or tags
|
9 |
|
3 |
Tags: post, comment, delete, bulk, draft, revision, page
|
4 |
Requires at least: 2.5
|
5 |
Tested up to: 2.7.1
|
6 |
+
Stable tag: 0.3
|
7 |
|
8 |
Bulk delete posts from selected categories or tags
|
9 |
|