Bulk Delete - Version 2.0

Version Description

Download this release

Release Info

Developer sudar
Plugin Icon 128x128 Bulk Delete
Version 2.0
Comparing to
See all releases

Code changes from version 1.9 to 2.0

Files changed (3) hide show
  1. bulk-delete.php +241 -157
  2. languages/bulk-delete.pot +86 -82
  3. readme.txt +9 -2
bulk-delete.php CHANGED
@@ -5,7 +5,7 @@ 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
  Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
8
- Version: 1.9
9
  License: GPL
10
  Author: Sudar
11
  Author URI: http://sudarmuthu.com/
@@ -32,7 +32,10 @@ Text Domain: bulk-delete
32
  2012-03-16 - v1.9 - Added support for deleting by permalink. Credit Martin Capodici
33
  - Fixed issues with translations
34
  - Added Rusian translations
35
- */
 
 
 
36
 
37
  /* Copyright 2009 Sudar Muthu (email : sudar@sudarmuthu.com)
38
 
@@ -73,10 +76,7 @@ if (!function_exists('smbd_request_handler')) {
73
  $selected_cats = $_POST['smbd_cats'];
74
  if ($_POST['smbd_cats_restrict'] == "true") {
75
 
76
- add_option('cats_op', $_POST['smbd_cats_op']);
77
- add_option('cats_days', $_POST['smbd_cats_days']);
78
-
79
- add_filter ('posts_where', 'cats_by_days');
80
  }
81
 
82
  $private = $_POST['smbd_cats_private'];
@@ -114,11 +114,7 @@ if (!function_exists('smbd_request_handler')) {
114
  // delete by tags
115
  $selected_tags = $_POST['smbd_tags'];
116
  if ($_POST['smbd_tags_restrict'] == "true") {
117
-
118
- add_option('tags_op', $_POST['smbd_tags_op']);
119
- add_option('tags_days', $_POST['smbd_tags_days']);
120
-
121
- add_filter ('posts_where', 'tags_by_days');
122
  }
123
 
124
  $private = $_POST['smbd_tags_private'];
@@ -158,14 +154,10 @@ if (!function_exists('smbd_request_handler')) {
158
  $selected_taxs = $_POST['smbd_taxs'];
159
 
160
  foreach ($selected_taxs as $selected_tax) {
161
- $postids = get_tax_post($selected_tax);
162
 
163
  if ($_POST['smbd_taxs_restrict'] == "true") {
164
-
165
- add_option('taxs_op', $_POST['smbd_taxs_op']);
166
- add_option('taxs_days', $_POST['smbd_taxs_days']);
167
-
168
- add_filter ('posts_where', 'taxs_by_days');
169
  }
170
 
171
  $private = $_POST['smbd_taxs_private'];
@@ -299,8 +291,10 @@ if (!function_exists('smbd_request_handler')) {
299
  /**
300
  * Show deleted notice messages
301
  */
302
- function smbd_deleted_notice() {
303
- echo "<div class = 'updated'><p>" . __("All the selected posts have been sucessfully deleted.", 'bulk-delete') . "</p></div>";
 
 
304
  }
305
 
306
  /**
@@ -311,11 +305,21 @@ if (!function_exists('smbd_displayOptions')) {
311
  global $wpdb;
312
  ?>
313
  <div class="updated fade" style="background:#ff0;text-align:center;color: red;"><p><strong><?php _e("WARNING: Posts deleted once cannot be retrieved back. Use with caution.", 'bulk-delete'); ?></strong></p></div>
314
- <div class="wrap">
315
- <?php screen_icon(); ?>
316
- <h2>Bulk Delete</h2>
317
 
318
- <h3><?php _e("Select the posts which you want to delete", 'bulk-delete'); ?></h3>
 
 
 
 
 
 
 
 
 
 
 
 
 
319
 
320
  <form name="smbd_form" id = "smbd_misc_form"
321
  action="<?php echo get_bloginfo("wpurl"); ?>/wp-admin/options-general.php?page=bulk-delete.php" method="post"
@@ -335,48 +339,60 @@ if (!function_exists('smbd_displayOptions')) {
335
  <tr>
336
  <td scope="row" >
337
  <input name="smbd_drafs" id ="smbd_drafs" value = "drafs" type = "checkbox" />
338
- <label for="smbd_drafs"><?php echo _e("All Drafts", 'bulk-delete'); ?> (<?php echo $drafts . " "; _e("Drafts", 'bulk-delete'); ?>)</label>
339
  </td>
340
  </tr>
 
341
  <tr>
342
  <td>
343
  <input name="smbd_revisions" id ="smbd_revisions" value = "revisions" type = "checkbox" />
344
- <label for="smbd_revisions"><?php echo _e("All Revisions", 'bulk-delete'); ?> (<?php echo $revisions . " "; _e("Revisions", 'bulk-delete'); ?>)</label>
345
  </td>
346
  </tr>
 
347
  <tr>
348
  <td>
349
  <input name="smbd_pending" id ="smbd_pending" value = "pending" type = "checkbox" />
350
- <label for="smbd_pending"><?php echo _e("All Pending posts", 'bulk-delete'); ?> (<?php echo $pending . " "; _e("Posts", 'bulk-delete'); ?>)</label>
351
  </td>
352
  </tr>
 
353
  <tr>
354
  <td>
355
  <input name="smbd_future" id ="smbd_future" value = "future" type = "checkbox" />
356
- <label for="smbd_future"><?php echo _e("All scheduled posts", 'bulk-delete'); ?> (<?php echo $future . " "; _e("Posts", 'bulk-delete'); ?>)</label>
357
  </td>
358
  </tr>
 
359
  <tr>
360
  <td>
361
  <input name="smbd_private" id ="smbd_private" value = "private" type = "checkbox" />
362
- <label for="smbd_private"><?php echo _e("All private posts", 'bulk-delete'); ?> (<?php echo $private . " "; _e("Posts", 'bulk-delete'); ?>)</label>
363
  </td>
364
  </tr>
 
365
  <tr>
366
  <td>
367
  <input name="smbd_pages" value = "pages" type = "checkbox" />
368
- <label for="smbd_pages"><?php echo _e("All Pages", 'bulk-delete'); ?> (<?php echo $pages . " "; _e("Pages", 'bulk-delete'); ?>)</label>
369
  </td>
370
  </tr>
371
 
372
  <tr>
373
  <td scope="row">
374
  <input name="smdb_specific_pages" id="smdb_specific_pages" value = "specificpages" type = "checkbox" />
375
- <label for="smdb_specific_pages"><?php echo _e("Delete these specific pages", 'bulk-delete'); ?></label>
376
  <br/>
377
  <textarea style="width: 450px; height: 80px;" id="smdb_specific_pages_urls" name="smdb_specific_pages_urls" rows="5" columns="80" ></textarea>
378
  </td>
379
  </tr>
 
 
 
 
 
 
 
380
  <tr>
381
  <td scope="row">
382
  <input name="smbd_special_force_delete" value = "false" type = "radio" checked="checked" /> <?php _e('Move to Trash', 'bulk-delete'); ?>
@@ -393,24 +409,30 @@ if (!function_exists('smbd_displayOptions')) {
393
  </td>
394
  </tr>
395
 
396
-
397
  </table>
398
  </fieldset>
 
399
  <p class="submit">
400
- <input type="submit" name="submit" value="<?php _e("Bulk Delete ", 'bulk-delete') ?>&raquo;">
401
  </p>
402
 
403
  <?php wp_nonce_field('bulk-delete-posts'); ?>
404
 
405
  <input type="hidden" name="smbd_action" value="bulk-delete-special" />
406
  </form>
407
-
408
- <h3><?php _e("By Category", 'bulk-delete'); ?></h3>
 
 
 
 
 
 
 
409
  <h4><?php _e("Select the categories whose post you want to delete", 'bulk-delete'); ?></h4>
410
 
411
  <form name="smbd_form" id = "smbd_cat_form"
412
- action="<?php echo get_bloginfo("wpurl"); ?>/wp-admin/options-general.php?page=bulk-delete.php" method="post"
413
- onsubmit="return bd_validateForm(this);">
414
 
415
  <fieldset class="options">
416
  <table class="optiontable">
@@ -437,8 +459,11 @@ if (!function_exists('smbd_displayOptions')) {
437
  <label for="smbd_cats_all"><?php _e("All Categories", 'bulk-delete') ?></label>
438
  </td>
439
  </tr>
 
440
  <tr>
441
- <td colspan="2"></td>
 
 
442
  </tr>
443
 
444
  <tr>
@@ -483,18 +508,27 @@ if (!function_exists('smbd_displayOptions')) {
483
  </table>
484
  </fieldset>
485
  <p class="submit">
486
- <input type="submit" name="submit" value="<?php _e("Bulk Delete ", 'bulk-delete') ?>&raquo;">
487
  </p>
488
 
489
  <?php wp_nonce_field('bulk-delete-posts'); ?>
490
 
491
  <input type="hidden" name="smbd_action" value="bulk-delete-cats" />
492
  </form>
 
 
493
  <?php
494
  $tags = get_tags();
495
  if (count($tags) > 0) {
496
  ?>
497
- <h3><?php _e("By Tags", 'bulk-delete'); ?></h3>
 
 
 
 
 
 
 
498
  <h4><?php _e("Select the tags whose post you want to delete", 'bulk-delete') ?></h4>
499
 
500
  <form name="smbd_form" id = "smbd_tag_form"
@@ -527,7 +561,9 @@ if (!function_exists('smbd_displayOptions')) {
527
  </tr>
528
 
529
  <tr>
530
- <td colspan="2"></td>
 
 
531
  </tr>
532
 
533
  <tr>
@@ -572,13 +608,15 @@ if (!function_exists('smbd_displayOptions')) {
572
  </table>
573
  </fieldset>
574
  <p class="submit">
575
- <input type="submit" name="submit" value="<?php _e("Bulk Delete ", 'bulk-delete') ?>&raquo;">
576
  </p>
577
 
578
  <?php wp_nonce_field('bulk-delete-posts'); ?>
579
 
580
  <input type="hidden" name="smbd_action" value="bulk-delete-tags" />
581
  </form>
 
 
582
  <?php
583
  }
584
  ?>
@@ -587,7 +625,12 @@ if (!function_exists('smbd_displayOptions')) {
587
  $customTaxs = get_taxonomies();
588
  if (count($customTaxs) > 0) {
589
  ?>
590
- <h3><?php _e("By Taxonomies", 'bulk-delete'); ?></h3>
 
 
 
 
 
591
  <h4><?php _e("Select the taxonomies whose post you want to delete", 'bulk-delete') ?></h4>
592
 
593
  <form name="smbd_form" id = "smbd_tax_form"
@@ -599,7 +642,7 @@ if (!function_exists('smbd_displayOptions')) {
599
  <?php
600
  foreach ($customTaxs as $taxs) {
601
 
602
- $posts = get_tax_post($taxs);
603
  ?>
604
  <tr>
605
  <td scope="row" >
@@ -622,7 +665,9 @@ if (!function_exists('smbd_displayOptions')) {
622
  </tr>
623
 
624
  <tr>
625
- <td colspan="2"></td>
 
 
626
  </tr>
627
 
628
  <tr>
@@ -667,28 +712,46 @@ if (!function_exists('smbd_displayOptions')) {
667
  </table>
668
  </fieldset>
669
  <p class="submit">
670
- <input type="submit" name="submit" value="<?php _e("Bulk Delete ", 'bulk-delete') ?>&raquo;">
671
  </p>
672
 
673
  <?php wp_nonce_field('bulk-delete-posts'); ?>
674
 
675
  <input type="hidden" name="smbd_action" value="bulk-delete-taxs" />
676
  </form>
 
 
677
  <?php
678
  }
679
  ?>
680
- <h3><?php _e('Support', 'bulk-delete'); ?></h3>
681
- <p><?php _e('If you have any questions/comments/feedback about the Plugin then post a comment in the <a target="_blank" href = "http://sudarmuthu.com/wordpress/bulk-delete">Plugins homepage</a>.','bulk-delete'); ?></p>
682
- <p><?php _e('If you like the Plugin, then consider doing one of the following.', 'bulk-delete'); ?></p>
683
- <ul style="list-style:disc inside">
684
- <li><?php _e('Write a blog post about the Plugin.', 'bulk-delete'); ?></li>
685
- <li><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://sudarmuthu.com/wordpress/bulk-delete" data-text="Bulk Delete WordPress Plugin" data-count="none" data-via="sudarmuthu">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script><?php _e(' about it.', 'bulk-delete'); ?></li>
686
- <li><?php _e('Give a <a href = "http://wordpress.org/extend/plugins/bulk-delete/" target="_blank">good rating</a>.', 'bulk-delete'); ?></li>
687
- <li><?php _e('Say <a href = "http://sudarmuthu.com/if-you-wanna-thank-me" target="_blank">thank you</a>.', 'bulk-delete'); ?></li>
688
- </ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
689
 
690
  <p><em><?php _e("If you are looking to move posts in bulk, instead of deleting then try out my ", 'bulk-delete'); ?> <a href = "http://sudarmuthu.com/wordpress/bulk-move"><?php _e("Bulk Move Plugin", 'bulk-delete');?></a>.</em></p>
691
  </div>
 
692
  <?php
693
 
694
  // Display credits in Footer
@@ -696,81 +759,21 @@ if (!function_exists('smbd_displayOptions')) {
696
  }
697
  }
698
 
699
- /**
700
- * Print JavaScript
701
- */
702
- function smbd_print_scripts() {
703
- ?>
704
- <script type="text/javascript">
705
-
706
- /**
707
- * Check All Checkboxes
708
- */
709
- function bd_checkAll(form) {
710
- for (i = 0, n = form.elements.length; i < n; i++) {
711
- if(form.elements[i].type == "checkbox" && !(form.elements[i].getAttribute('onclick',2))) {
712
- if(form.elements[i].checked == true)
713
- form.elements[i].checked = false;
714
- else
715
- form.elements[i].checked = true;
716
- }
717
- }
718
- }
719
-
720
- function toggle_date_restrict(el) {
721
- if (jQuery("#smbd_" + el + "_restrict").is(":checked")) {
722
- jQuery("#smbd_" + el + "_op").removeAttr('disabled');
723
- jQuery("#smbd_" + el + "_days").removeAttr('disabled');
724
- } else {
725
- jQuery("#smbd_" + el + "_op").attr('disabled', 'true');
726
- jQuery("#smbd_" + el + "_days").attr('disabled', 'true');
727
- }
728
- }
729
-
730
- function toggle_limit_restrict(el) {
731
- if (jQuery("#smbd_" + el + "_limit").is(":checked")) {
732
- jQuery("#smbd_" + el + "_limit_to").removeAttr('disabled');
733
- } else {
734
- jQuery("#smbd_" + el + "_limit_to").attr('disabled', 'true');
735
- }
736
- }
737
- /**
738
- * Validate Form
739
- */
740
- function bd_validateForm(form) {
741
- var valid = false;
742
- for (i = 0, n = form.elements.length; i < n; i++) {
743
- if(form.elements[i].type == "checkbox" && !(form.elements[i].getAttribute('onclick',2))) {
744
- if(form.elements[i].checked == true) {
745
- valid = true;
746
- break;
747
- }
748
- }
749
- }
750
-
751
- if (valid) {
752
- return confirm("<?php _e('Are you sure you want to delete all the selected posts', 'bulk-delete'); ?>");
753
- } else {
754
- alert ("<?php _e('Please select at least one', 'bulk-delete'); ?>");
755
- return false;
756
- }
757
- }
758
- </script>
759
- <?php
760
- }
761
-
762
  /**
763
  * function to filter posts by days
764
  * @param <type> $where
765
  * @return <type>
766
  */
767
- function cats_by_days ($where = '') {
768
- $cats_op = get_option('cats_op');
769
- $cats_days = get_option('cats_days');
770
- remove_filter('posts_where', 'cats_by_days');
 
 
771
 
772
- $where .= " AND post_date $cats_op '" . date('y-m-d', strtotime("-$cats_days days")) . "'";
773
- return $where;
 
774
  }
775
 
776
  /**
@@ -778,13 +781,16 @@ function cats_by_days ($where = '') {
778
  * @param <type> $where
779
  * @return <type>
780
  */
781
- function tags_by_days ($where = '') {
782
- $tags_op = get_option('tags_op');
783
- $tags_days = get_option('tags_days');
784
-
785
- remove_filter('posts_where', 'tags_by_days');
786
- $where .= " AND post_date $tags_op '" . date('y-m-d', strtotime("-$tags_days days")) . "'";
787
- return $where;
 
 
 
788
  }
789
 
790
  /**
@@ -792,13 +798,16 @@ function tags_by_days ($where = '') {
792
  * @param <type> $where
793
  * @return <type>
794
  */
795
- function taxs_by_days ($where = '') {
796
- $taxs_op = get_option('taxs_op');
797
- $taxs_days = get_option('taxs_days');
 
 
 
798
 
799
- remove_filter('posts_where', 'taxs_by_days');
800
- $where .= " AND post_date $taxs_op '" . date('y-m-d', strtotime("-$taxs_days days")) . "'";
801
- return $where;
802
  }
803
 
804
  /**
@@ -807,19 +816,22 @@ function taxs_by_days ($where = '') {
807
  * @param <type> $tax
808
  * @return <type>
809
  */
810
- function get_tax_post($tax) {
811
- global $wpdb;
812
-
813
- $query = $wpdb->prepare("select object_id from {$wpdb->prefix}term_relationships where term_taxonomy_id in (select term_taxonomy_id from {$wpdb->prefix}term_taxonomy where taxonomy = '$tax')");
814
- $post_ids_result = $wpdb->get_results($query);
815
-
816
- $postids = array();
817
- foreach ($post_ids_result as $post_id_result) {
818
- $postids[] = $post_id_result->object_id;
819
- }
820
 
821
- return $postids;
 
 
 
 
 
 
822
  }
 
823
  /**
824
  * Add navigation menu
825
  */
@@ -827,7 +839,6 @@ if(!function_exists('smbd_add_menu')) {
827
  function smbd_add_menu() {
828
  //Add a submenu to Manage
829
  $page = add_options_page("Bulk Delete", "Bulk Delete", 'manage_options', basename(__FILE__), "smbd_displayOptions");
830
- add_action('admin_print_scripts-' . $page, 'smbd_print_scripts');
831
  }
832
  }
833
 
@@ -837,26 +848,99 @@ if(!function_exists('smbd_add_menu')) {
837
  * @param <type> $links
838
  * @param <type> $file
839
  */
840
- function smbd_filter_plugin_actions($links, $file) {
841
- static $this_plugin;
842
- if( ! $this_plugin ) $this_plugin = plugin_basename(__FILE__);
843
-
844
- if( $file == $this_plugin ) {
845
- $settings_link = '<a href="options-general.php?page=bulk-delete.php">' . _('Manage') . '</a>';
846
- array_unshift( $links, $settings_link ); // before other links
 
 
 
847
  }
848
- return $links;
849
  }
850
 
851
  /**
852
  * Adds Footer links. Based on http://striderweb.com/nerdaphernalia/2008/06/give-your-wordpress-plugin-credit/
853
  */
 
854
  function smbd_admin_footer() {
855
  $plugin_data = get_plugin_data( __FILE__ );
856
  printf('%1$s ' . __("plugin", 'bulk-delete') .' | ' . __("Version", 'bulk-delete') . ' %2$s | '. __('by', 'bulk-delete') . ' %3$s<br />', $plugin_data['Title'], $plugin_data['Version'], $plugin_data['Author']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
857
  }
858
 
859
  add_filter( 'plugin_action_links', 'smbd_filter_plugin_actions', 10, 2 );
860
  add_action('admin_menu', 'smbd_add_menu');
861
- add_action('init', 'smbd_request_handler');
862
  ?>
5
  Plugin URI: http://sudarmuthu.com/wordpress/bulk-delete
6
  Description: Bulk delete posts from selected categories or tags. Use it with caution.
7
  Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
8
+ Version: 2.0
9
  License: GPL
10
  Author: Sudar
11
  Author URI: http://sudarmuthu.com/
32
  2012-03-16 - v1.9 - Added support for deleting by permalink. Credit Martin Capodici
33
  - Fixed issues with translations
34
  - Added Rusian translations
35
+ 2012-04-01 - v2.0 (10 hours) - Fixed a major issue in how dates were handled.
36
+ - Major UI revamp
37
+ - Added debug information and support urls
38
+ */
39
 
40
  /* Copyright 2009 Sudar Muthu (email : sudar@sudarmuthu.com)
41
 
76
  $selected_cats = $_POST['smbd_cats'];
77
  if ($_POST['smbd_cats_restrict'] == "true") {
78
 
79
+ add_filter ('posts_where', 'smbd_cats_by_days');
 
 
 
80
  }
81
 
82
  $private = $_POST['smbd_cats_private'];
114
  // delete by tags
115
  $selected_tags = $_POST['smbd_tags'];
116
  if ($_POST['smbd_tags_restrict'] == "true") {
117
+ add_filter ('posts_where', 'smbd_tags_by_days');
 
 
 
 
118
  }
119
 
120
  $private = $_POST['smbd_tags_private'];
154
  $selected_taxs = $_POST['smbd_taxs'];
155
 
156
  foreach ($selected_taxs as $selected_tax) {
157
+ $postids = smbd_get_tax_post($selected_tax);
158
 
159
  if ($_POST['smbd_taxs_restrict'] == "true") {
160
+ add_filter ('posts_where', 'smbd_taxs_by_days');
 
 
 
 
161
  }
162
 
163
  $private = $_POST['smbd_taxs_private'];
291
  /**
292
  * Show deleted notice messages
293
  */
294
+ if (!function_exists('smbd_deleted_notice')) {
295
+ function smbd_deleted_notice() {
296
+ echo "<div class = 'updated'><p>" . __("All the selected posts have been successfully deleted.", 'bulk-delete') . "</p></div>";
297
+ }
298
  }
299
 
300
  /**
305
  global $wpdb;
306
  ?>
307
  <div class="updated fade" style="background:#ff0;text-align:center;color: red;"><p><strong><?php _e("WARNING: Posts deleted once cannot be retrieved back. Use with caution.", 'bulk-delete'); ?></strong></p></div>
 
 
 
308
 
309
+ <div class="wrap">
310
+ <?php screen_icon(); ?>
311
+ <h2>Bulk Delete</h2>
312
+
313
+ <iframe height = "950" src = "http://sudarmuthu.com/projects/wordpress/bulk-delete/sidebar.php?color=<?php echo get_user_option('admin_color'); ?>"></iframe>
314
+
315
+ <div id = "poststuff" style = "float:left; width:75%">
316
+ <div class = "postbox">
317
+ <div class = "handlediv">
318
+ <br>
319
+ </div>
320
+ <h3 class = "hndle"><span><?php _e("By Type", 'bulk-delete'); ?></span></h3>
321
+ <div class = "inside">
322
+ <h4><?php _e("Select the posts which you want to delete", 'bulk-delete'); ?></h4>
323
 
324
  <form name="smbd_form" id = "smbd_misc_form"
325
  action="<?php echo get_bloginfo("wpurl"); ?>/wp-admin/options-general.php?page=bulk-delete.php" method="post"
339
  <tr>
340
  <td scope="row" >
341
  <input name="smbd_drafs" id ="smbd_drafs" value = "drafs" type = "checkbox" />
342
+ <label for="smbd_drafs"><?php _e("All Drafts", 'bulk-delete'); ?> (<?php echo $drafts . " "; _e("Drafts", 'bulk-delete'); ?>)</label>
343
  </td>
344
  </tr>
345
+
346
  <tr>
347
  <td>
348
  <input name="smbd_revisions" id ="smbd_revisions" value = "revisions" type = "checkbox" />
349
+ <label for="smbd_revisions"><?php _e("All Revisions", 'bulk-delete'); ?> (<?php echo $revisions . " "; _e("Revisions", 'bulk-delete'); ?>)</label>
350
  </td>
351
  </tr>
352
+
353
  <tr>
354
  <td>
355
  <input name="smbd_pending" id ="smbd_pending" value = "pending" type = "checkbox" />
356
+ <label for="smbd_pending"><?php _e("All Pending posts", 'bulk-delete'); ?> (<?php echo $pending . " "; _e("Posts", 'bulk-delete'); ?>)</label>
357
  </td>
358
  </tr>
359
+
360
  <tr>
361
  <td>
362
  <input name="smbd_future" id ="smbd_future" value = "future" type = "checkbox" />
363
+ <label for="smbd_future"><?php _e("All scheduled posts", 'bulk-delete'); ?> (<?php echo $future . " "; _e("Posts", 'bulk-delete'); ?>)</label>
364
  </td>
365
  </tr>
366
+
367
  <tr>
368
  <td>
369
  <input name="smbd_private" id ="smbd_private" value = "private" type = "checkbox" />
370
+ <label for="smbd_private"><?php _e("All private posts", 'bulk-delete'); ?> (<?php echo $private . " "; _e("Posts", 'bulk-delete'); ?>)</label>
371
  </td>
372
  </tr>
373
+
374
  <tr>
375
  <td>
376
  <input name="smbd_pages" value = "pages" type = "checkbox" />
377
+ <label for="smbd_pages"><?php _e("All Pages", 'bulk-delete'); ?> (<?php echo $pages . " "; _e("Pages", 'bulk-delete'); ?>)</label>
378
  </td>
379
  </tr>
380
 
381
  <tr>
382
  <td scope="row">
383
  <input name="smdb_specific_pages" id="smdb_specific_pages" value = "specificpages" type = "checkbox" />
384
+ <label for="smdb_specific_pages"><?php _e("Delete these specific pages (Enter one post url (not post ids) per line)", 'bulk-delete'); ?></label>
385
  <br/>
386
  <textarea style="width: 450px; height: 80px;" id="smdb_specific_pages_urls" name="smdb_specific_pages_urls" rows="5" columns="80" ></textarea>
387
  </td>
388
  </tr>
389
+
390
+ <tr>
391
+ <td>
392
+ <h4><?php _e("Choose your filtering options", 'bulk-delete'); ?></h4>
393
+ </td>
394
+ </tr>
395
+
396
  <tr>
397
  <td scope="row">
398
  <input name="smbd_special_force_delete" value = "false" type = "radio" checked="checked" /> <?php _e('Move to Trash', 'bulk-delete'); ?>
409
  </td>
410
  </tr>
411
 
 
412
  </table>
413
  </fieldset>
414
+
415
  <p class="submit">
416
+ <input type="submit" name="submit" class="button-primary" value="<?php _e("Bulk Delete ", 'bulk-delete') ?>&raquo;">
417
  </p>
418
 
419
  <?php wp_nonce_field('bulk-delete-posts'); ?>
420
 
421
  <input type="hidden" name="smbd_action" value="bulk-delete-special" />
422
  </form>
423
+ </div>
424
+ </div>
425
+
426
+ <div class = "postbox">
427
+ <div class = "handlediv">
428
+ <br>
429
+ </div>
430
+ <h3 class = "hndle"><span><?php _e("By Category", 'bulk-delete'); ?></span></h3>
431
+ <div class = "inside">
432
  <h4><?php _e("Select the categories whose post you want to delete", 'bulk-delete'); ?></h4>
433
 
434
  <form name="smbd_form" id = "smbd_cat_form"
435
+ action="<?php echo get_bloginfo("wpurl"); ?>/wp-admin/options-general.php?page=bulk-delete.php" method="post" onsubmit="return bd_validateForm(this);">
 
436
 
437
  <fieldset class="options">
438
  <table class="optiontable">
459
  <label for="smbd_cats_all"><?php _e("All Categories", 'bulk-delete') ?></label>
460
  </td>
461
  </tr>
462
+
463
  <tr>
464
+ <td colspan="2">
465
+ <h4><?php _e("Choose your filtering options", 'bulk-delete'); ?></h4>
466
+ </td>
467
  </tr>
468
 
469
  <tr>
508
  </table>
509
  </fieldset>
510
  <p class="submit">
511
+ <input type="submit" name="submit" class="button-primary" value="<?php _e("Bulk Delete ", 'bulk-delete') ?>&raquo;">
512
  </p>
513
 
514
  <?php wp_nonce_field('bulk-delete-posts'); ?>
515
 
516
  <input type="hidden" name="smbd_action" value="bulk-delete-cats" />
517
  </form>
518
+ </div>
519
+ </div>
520
  <?php
521
  $tags = get_tags();
522
  if (count($tags) > 0) {
523
  ?>
524
+ <div class = "postbox">
525
+ <div class = "handlediv">
526
+ <br>
527
+ </div>
528
+
529
+ <h3 class = "hndle"><span><?php _e("By Tags", 'bulk-delete'); ?></span></h3>
530
+
531
+ <div class = "inside">
532
  <h4><?php _e("Select the tags whose post you want to delete", 'bulk-delete') ?></h4>
533
 
534
  <form name="smbd_form" id = "smbd_tag_form"
561
  </tr>
562
 
563
  <tr>
564
+ <td colspan="2">
565
+ <h4><?php _e("Choose your filtering options", 'bulk-delete'); ?></h4>
566
+ </td>
567
  </tr>
568
 
569
  <tr>
608
  </table>
609
  </fieldset>
610
  <p class="submit">
611
+ <input type="submit" name="submit" class="button-primary" value="<?php _e("Bulk Delete ", 'bulk-delete') ?>&raquo;">
612
  </p>
613
 
614
  <?php wp_nonce_field('bulk-delete-posts'); ?>
615
 
616
  <input type="hidden" name="smbd_action" value="bulk-delete-tags" />
617
  </form>
618
+ </div>
619
+ </div>
620
  <?php
621
  }
622
  ?>
625
  $customTaxs = get_taxonomies();
626
  if (count($customTaxs) > 0) {
627
  ?>
628
+ <div class = "postbox">
629
+ <div class = "handlediv">
630
+ <br>
631
+ </div>
632
+ <h3 class = "hndle"><span><?php _e("By Taxonomies", 'bulk-delete'); ?></span></h3>
633
+ <div class = "inside">
634
  <h4><?php _e("Select the taxonomies whose post you want to delete", 'bulk-delete') ?></h4>
635
 
636
  <form name="smbd_form" id = "smbd_tax_form"
642
  <?php
643
  foreach ($customTaxs as $taxs) {
644
 
645
+ $posts = smbd_get_tax_post($taxs);
646
  ?>
647
  <tr>
648
  <td scope="row" >
665
  </tr>
666
 
667
  <tr>
668
+ <td colspan="2">
669
+ <h4><?php _e("Choose your filtering options", 'bulk-delete'); ?></h4>
670
+ </td>
671
  </tr>
672
 
673
  <tr>
712
  </table>
713
  </fieldset>
714
  <p class="submit">
715
+ <input type="submit" class="button-primary" name="submit" value="<?php _e("Bulk Delete ", 'bulk-delete') ?>&raquo;">
716
  </p>
717
 
718
  <?php wp_nonce_field('bulk-delete-posts'); ?>
719
 
720
  <input type="hidden" name="smbd_action" value="bulk-delete-taxs" />
721
  </form>
722
+ </div>
723
+ </div>
724
  <?php
725
  }
726
  ?>
727
+ <div class = "postbox">
728
+ <div class = "handlediv">
729
+ <br>
730
+ </div>
731
+ <h3 class = "hndle"><span><?php _e('Debug Information', 'bulk-delete'); ?></span></h3>
732
+ <div class = "inside">
733
+ <p><?php _e('If you are seeing a blank page after clicking the Bulk Delete button, then ', 'bulk-delete'); ?><a href = "http://sudarmuthu.com/wordpress/bulk-delete#faq-white-screen"><?php _e('check out this FAQ', 'bulk-delete');?></a>.
734
+ <?php _e('You also need need the following debug information.', 'bulk-delete'); ?></p>
735
+ <table cellspacing="10">
736
+ <tr>
737
+ <th align = "right"><?php _e('Available memory size ', 'bulk-delete');?></th>
738
+ <td><?php echo ini_get( 'memory_limit' ); ?></td>
739
+ </tr>
740
+ <tr>
741
+ <th align = "right"><?php _e('Script time out ', 'bulk-delete');?></th>
742
+ <td><?php echo ini_get( 'max_execution_time' ); ?></td>
743
+ </tr>
744
+ <tr>
745
+ <th align = "right"><?php _e('Script input time ', 'bulk-delete'); ?></th>
746
+ <td><?php echo ini_get( 'max_input_time' ); ?></td>
747
+ </tr>
748
+ </table>
749
+ </div>
750
+ </div>
751
 
752
  <p><em><?php _e("If you are looking to move posts in bulk, instead of deleting then try out my ", 'bulk-delete'); ?> <a href = "http://sudarmuthu.com/wordpress/bulk-move"><?php _e("Bulk Move Plugin", 'bulk-delete');?></a>.</em></p>
753
  </div>
754
+ </div>
755
  <?php
756
 
757
  // Display credits in Footer
759
  }
760
  }
761
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
762
  /**
763
  * function to filter posts by days
764
  * @param <type> $where
765
  * @return <type>
766
  */
767
+ if (!function_exists('smbd_cats_by_days ')) {
768
+ function smbd_cats_by_days ($where = '') {
769
+ $cats_op = $_POST['smbd_cats_op'];
770
+ $cats_days = $_POST['smbd_cats_days'];
771
+
772
+ remove_filter('posts_where', 'smbd_cats_by_days');
773
 
774
+ $where .= " AND post_date $cats_op '" . date('y-m-d', strtotime("-$cats_days days")) . "'";
775
+ return $where;
776
+ }
777
  }
778
 
779
  /**
781
  * @param <type> $where
782
  * @return <type>
783
  */
784
+ if (!function_exists('smbd_tags_by_days ')) {
785
+ function smbd_tags_by_days ($where = '') {
786
+ $tags_op = $_POST['smbd_tags_op'];
787
+ $tags_days = $_POST['smbd_tags_days'];
788
+
789
+ remove_filter('posts_where', 'smbd_tags_by_days');
790
+
791
+ $where .= " AND post_date $tags_op '" . date('y-m-d', strtotime("-$tags_days days")) . "'";
792
+ return $where;
793
+ }
794
  }
795
 
796
  /**
798
  * @param <type> $where
799
  * @return <type>
800
  */
801
+ if (!function_exists('smbd_taxs_by_days ')) {
802
+ function smbd_taxs_by_days ($where = '') {
803
+ $taxs_op = $_POST['smbd_taxs_op'];
804
+ $taxs_days = $_POST['smbd_taxs_days'];
805
+
806
+ remove_filter('posts_where', 'smbd_taxs_by_days');
807
 
808
+ $where .= " AND post_date $taxs_op '" . date('y-m-d', strtotime("-$taxs_days days")) . "'";
809
+ return $where;
810
+ }
811
  }
812
 
813
  /**
816
  * @param <type> $tax
817
  * @return <type>
818
  */
819
+ if (!function_exists('smbd_get_tax_post')) {
820
+ function smbd_get_tax_post($tax) {
821
+ global $wpdb;
822
+
823
+ $query = $wpdb->prepare("select object_id from {$wpdb->prefix}term_relationships where term_taxonomy_id in (select term_taxonomy_id from {$wpdb->prefix}term_taxonomy where taxonomy = '$tax')");
824
+ $post_ids_result = $wpdb->get_results($query);
 
 
 
 
825
 
826
+ $postids = array();
827
+ foreach ($post_ids_result as $post_id_result) {
828
+ $postids[] = $post_id_result->object_id;
829
+ }
830
+
831
+ return $postids;
832
+ }
833
  }
834
+
835
  /**
836
  * Add navigation menu
837
  */
839
  function smbd_add_menu() {
840
  //Add a submenu to Manage
841
  $page = add_options_page("Bulk Delete", "Bulk Delete", 'manage_options', basename(__FILE__), "smbd_displayOptions");
 
842
  }
843
  }
844
 
848
  * @param <type> $links
849
  * @param <type> $file
850
  */
851
+ if (!function_exists('smbd_filter_plugin_actions')) {
852
+ function smbd_filter_plugin_actions($links, $file) {
853
+ static $this_plugin;
854
+ if( ! $this_plugin ) $this_plugin = plugin_basename(__FILE__);
855
+
856
+ if( $file == $this_plugin ) {
857
+ $settings_link = '<a href="options-general.php?page=bulk-delete.php">' . _('Manage') . '</a>';
858
+ array_unshift( $links, $settings_link ); // before other links
859
+ }
860
+ return $links;
861
  }
 
862
  }
863
 
864
  /**
865
  * Adds Footer links. Based on http://striderweb.com/nerdaphernalia/2008/06/give-your-wordpress-plugin-credit/
866
  */
867
+ if (!function_exists('smbd_admin_footer')) {
868
  function smbd_admin_footer() {
869
  $plugin_data = get_plugin_data( __FILE__ );
870
  printf('%1$s ' . __("plugin", 'bulk-delete') .' | ' . __("Version", 'bulk-delete') . ' %2$s | '. __('by', 'bulk-delete') . ' %3$s<br />', $plugin_data['Title'], $plugin_data['Version'], $plugin_data['Author']);
871
+ ?>
872
+ <script type="text/javascript">
873
+
874
+ /**
875
+ * Toggle closing of different sections
876
+ *
877
+ */
878
+ jQuery(document).ready( function() {
879
+ jQuery('.postbox h3').click( function() {
880
+ jQuery(jQuery(this).parent().get(0)).toggleClass('closed');
881
+ });
882
+ });
883
+
884
+ /**
885
+ * Check All Checkboxes
886
+ */
887
+ function bd_checkAll(form) {
888
+ for (i = 0, n = form.elements.length; i < n; i++) {
889
+ if(form.elements[i].type == "checkbox" && !(form.elements[i].getAttribute('onclick',2))) {
890
+ if(form.elements[i].checked == true)
891
+ form.elements[i].checked = false;
892
+ else
893
+ form.elements[i].checked = true;
894
+ }
895
+ }
896
+ }
897
+
898
+ function toggle_date_restrict(el) {
899
+ if (jQuery("#smbd_" + el + "_restrict").is(":checked")) {
900
+ jQuery("#smbd_" + el + "_op").removeAttr('disabled');
901
+ jQuery("#smbd_" + el + "_days").removeAttr('disabled');
902
+ } else {
903
+ jQuery("#smbd_" + el + "_op").attr('disabled', 'true');
904
+ jQuery("#smbd_" + el + "_days").attr('disabled', 'true');
905
+ }
906
+ }
907
+
908
+ function toggle_limit_restrict(el) {
909
+ if (jQuery("#smbd_" + el + "_limit").is(":checked")) {
910
+ jQuery("#smbd_" + el + "_limit_to").removeAttr('disabled');
911
+ } else {
912
+ jQuery("#smbd_" + el + "_limit_to").attr('disabled', 'true');
913
+ }
914
+ }
915
+
916
+ /**
917
+ * Validate Form
918
+ */
919
+ function bd_validateForm(form) {
920
+ var valid = false;
921
+ for (i = 0, n = form.elements.length; i < n; i++) {
922
+ if(form.elements[i].type == "checkbox" && !(form.elements[i].getAttribute('onclick',2))) {
923
+ if(form.elements[i].checked == true) {
924
+ valid = true;
925
+ break;
926
+ }
927
+ }
928
+ }
929
+
930
+ if (valid) {
931
+ return confirm("<?php _e('Are you sure you want to delete all the selected posts', 'bulk-delete'); ?>");
932
+ } else {
933
+ alert ("<?php _e('Please select at least one', 'bulk-delete'); ?>");
934
+ return false;
935
+ }
936
+ }
937
+ </script>
938
+
939
+ <?php
940
+ }
941
  }
942
 
943
  add_filter( 'plugin_action_links', 'smbd_filter_plugin_actions', 10, 2 );
944
  add_action('admin_menu', 'smbd_add_menu');
945
+ add_action('admin_init', 'smbd_request_handler');
946
  ?>
languages/bulk-delete.pot CHANGED
@@ -1,234 +1,238 @@
1
- # Copyright (C) 2010 Bulk Delete
2
  # This file is distributed under the same license as the Bulk Delete package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Bulk Delete 1.9\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/bulk-delete\n"
7
- "POT-Creation-Date: 2012-03-16 13:58:07+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: bulk-delete.php:302
16
- msgid "All the selected posts have been sucessfully deleted."
17
  msgstr ""
18
 
19
- #: bulk-delete.php:312
20
  msgid "WARNING: Posts deleted once cannot be retrieved back. Use with caution."
21
  msgstr ""
22
 
23
- #: bulk-delete.php:317
 
 
 
 
24
  msgid "Select the posts which you want to delete"
25
  msgstr ""
26
 
27
- #: bulk-delete.php:337
28
  msgid "All Drafts"
29
  msgstr ""
30
 
31
- #: bulk-delete.php:337
32
  msgid "Drafts"
33
  msgstr ""
34
 
35
- #: bulk-delete.php:343
36
  msgid "All Revisions"
37
  msgstr ""
38
 
39
- #: bulk-delete.php:343
40
  msgid "Revisions"
41
  msgstr ""
42
 
43
- #: bulk-delete.php:349
44
  msgid "All Pending posts"
45
  msgstr ""
46
 
47
- #: bulk-delete.php:349 bulk-delete.php:355 bulk-delete.php:361
48
- #: bulk-delete.php:425 bulk-delete.php:513 bulk-delete.php:608
49
  msgid "Posts"
50
  msgstr ""
51
 
52
- #: bulk-delete.php:355
53
  msgid "All scheduled posts"
54
  msgstr ""
55
 
56
- #: bulk-delete.php:361
57
  msgid "All private posts"
58
  msgstr ""
59
 
60
- #: bulk-delete.php:367
61
  msgid "All Pages"
62
  msgstr ""
63
 
64
- #: bulk-delete.php:367
65
  msgid "Pages"
66
  msgstr ""
67
 
68
- #: bulk-delete.php:374
69
- msgid "Delete these specific pages"
 
 
 
 
 
 
70
  msgstr ""
71
 
72
- #: bulk-delete.php:381 bulk-delete.php:459 bulk-delete.php:548
73
- #: bulk-delete.php:643
74
  msgid "Move to Trash"
75
  msgstr ""
76
 
77
- #: bulk-delete.php:382 bulk-delete.php:460 bulk-delete.php:549
78
- #: bulk-delete.php:644
79
  msgid "Delete permanently"
80
  msgstr ""
81
 
82
- #: bulk-delete.php:389 bulk-delete.php:476 bulk-delete.php:565
83
- #: bulk-delete.php:660
84
  msgid "Only delete first "
85
  msgstr ""
86
 
87
- #: bulk-delete.php:390 bulk-delete.php:477 bulk-delete.php:566
88
- #: bulk-delete.php:661
89
  msgid "posts."
90
  msgstr ""
91
 
92
- #: bulk-delete.php:391 bulk-delete.php:478 bulk-delete.php:567
93
- #: bulk-delete.php:662
94
  msgid ""
95
  "Use this option if there are more than 1000 posts and the script timesout."
96
  msgstr ""
97
 
98
- #: bulk-delete.php:399 bulk-delete.php:485 bulk-delete.php:574
99
- #: bulk-delete.php:669
100
  msgid "Bulk Delete "
101
  msgstr ""
102
 
103
- #: bulk-delete.php:407
104
  msgid "By Category"
105
  msgstr ""
106
 
107
- #: bulk-delete.php:408
108
  msgid "Select the categories whose post you want to delete"
109
  msgstr ""
110
 
111
- #: bulk-delete.php:436
112
  msgid "All Categories"
113
  msgstr ""
114
 
115
- #: bulk-delete.php:448 bulk-delete.php:537 bulk-delete.php:632
116
  msgid "Only restrict to posts which are "
117
  msgstr ""
118
 
119
- #: bulk-delete.php:450 bulk-delete.php:539 bulk-delete.php:634
120
  msgid "older than"
121
  msgstr ""
122
 
123
- #: bulk-delete.php:451 bulk-delete.php:540 bulk-delete.php:635
124
  msgid "posted within last"
125
  msgstr ""
126
 
127
- #: bulk-delete.php:453 bulk-delete.php:542 bulk-delete.php:637
128
  msgid "days"
129
  msgstr ""
130
 
131
- #: bulk-delete.php:466 bulk-delete.php:555 bulk-delete.php:650
132
  msgid "Public posts"
133
  msgstr ""
134
 
135
- #: bulk-delete.php:467 bulk-delete.php:556 bulk-delete.php:651
136
  msgid "Private Posts"
137
  msgstr ""
138
 
139
- #: bulk-delete.php:496
140
  msgid "By Tags"
141
  msgstr ""
142
 
143
- #: bulk-delete.php:497
144
  msgid "Select the tags whose post you want to delete"
145
  msgstr ""
146
 
147
- #: bulk-delete.php:524
148
  msgid "All Tags"
149
  msgstr ""
150
 
151
- #: bulk-delete.php:589
152
  msgid "By Taxonomies"
153
  msgstr ""
154
 
155
- #: bulk-delete.php:590
156
  msgid "Select the taxonomies whose post you want to delete"
157
  msgstr ""
158
 
159
- #: bulk-delete.php:619
160
  msgid "All Taxonomies"
161
  msgstr ""
162
 
163
- #: bulk-delete.php:679
164
- msgid "Support"
165
  msgstr ""
166
 
167
- #: bulk-delete.php:680
168
  msgid ""
169
- "If you have any questions/comments/feedback about the Plugin then post a "
170
- "comment in the <a target=\"_blank\" href = \"http://sudarmuthu.com/wordpress/"
171
- "bulk-delete\">Plugins homepage</a>."
172
  msgstr ""
173
 
174
- #: bulk-delete.php:681
175
- msgid "If you like the Plugin, then consider doing one of the following."
176
  msgstr ""
177
 
178
- #: bulk-delete.php:683
179
- msgid "Write a blog post about the Plugin."
180
  msgstr ""
181
 
182
- #: bulk-delete.php:684
183
- msgid " about it."
184
  msgstr ""
185
 
186
- #: bulk-delete.php:685
187
- msgid ""
188
- "Give a <a href = \"http://wordpress.org/extend/plugins/bulk-delete/\" target="
189
- "\"_blank\">good rating</a>."
190
  msgstr ""
191
 
192
- #: bulk-delete.php:686
193
- msgid ""
194
- "Say <a href = \"http://sudarmuthu.com/if-you-wanna-thank-me\" target=\"_blank"
195
- "\">thank you</a>."
196
  msgstr ""
197
 
198
- #: bulk-delete.php:689
199
  msgid ""
200
  "If you are looking to move posts in bulk, instead of deleting then try out "
201
  "my "
202
  msgstr ""
203
 
204
- #: bulk-delete.php:689
205
  msgid "Bulk Move Plugin"
206
  msgstr ""
207
 
208
- #: bulk-delete.php:751
209
- msgid "Are you sure you want to delete all the selected posts"
210
- msgstr ""
211
-
212
- #: bulk-delete.php:753
213
- msgid "Please select at least one"
214
- msgstr ""
215
-
216
- #: bulk-delete.php:844
217
  msgid "Manage"
218
  msgstr ""
219
 
220
- #: bulk-delete.php:855
221
  msgid "plugin"
222
  msgstr ""
223
 
224
- #: bulk-delete.php:855
225
  msgid "Version"
226
  msgstr ""
227
 
228
- #: bulk-delete.php:855
229
  msgid "by"
230
  msgstr ""
231
 
 
 
 
 
 
 
 
 
232
  #. Plugin Name of the plugin/theme
233
  msgid "Bulk Delete"
234
  msgstr ""
1
+ # Copyright (C) 2012 Bulk Delete
2
  # This file is distributed under the same license as the Bulk Delete package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Bulk Delete 2.0\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/bulk-delete\n"
7
+ "POT-Creation-Date: 2012-04-01 14:20:55+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2012-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
+ #: bulk-delete.php:296
16
+ msgid "All the selected posts have been successfully deleted."
17
  msgstr ""
18
 
19
+ #: bulk-delete.php:307
20
  msgid "WARNING: Posts deleted once cannot be retrieved back. Use with caution."
21
  msgstr ""
22
 
23
+ #: bulk-delete.php:320
24
+ msgid "By Type"
25
+ msgstr ""
26
+
27
+ #: bulk-delete.php:322
28
  msgid "Select the posts which you want to delete"
29
  msgstr ""
30
 
31
+ #: bulk-delete.php:342
32
  msgid "All Drafts"
33
  msgstr ""
34
 
35
+ #: bulk-delete.php:342
36
  msgid "Drafts"
37
  msgstr ""
38
 
39
+ #: bulk-delete.php:349
40
  msgid "All Revisions"
41
  msgstr ""
42
 
43
+ #: bulk-delete.php:349
44
  msgid "Revisions"
45
  msgstr ""
46
 
47
+ #: bulk-delete.php:356
48
  msgid "All Pending posts"
49
  msgstr ""
50
 
51
+ #: bulk-delete.php:356 bulk-delete.php:363 bulk-delete.php:370
52
+ #: bulk-delete.php:448 bulk-delete.php:548 bulk-delete.php:652
53
  msgid "Posts"
54
  msgstr ""
55
 
56
+ #: bulk-delete.php:363
57
  msgid "All scheduled posts"
58
  msgstr ""
59
 
60
+ #: bulk-delete.php:370
61
  msgid "All private posts"
62
  msgstr ""
63
 
64
+ #: bulk-delete.php:377
65
  msgid "All Pages"
66
  msgstr ""
67
 
68
+ #: bulk-delete.php:377
69
  msgid "Pages"
70
  msgstr ""
71
 
72
+ #: bulk-delete.php:384
73
+ msgid ""
74
+ "Delete these specific pages (Enter one post url (not post ids) per line)"
75
+ msgstr ""
76
+
77
+ #: bulk-delete.php:392 bulk-delete.php:465 bulk-delete.php:565
78
+ #: bulk-delete.php:669
79
+ msgid "Choose your filtering options"
80
  msgstr ""
81
 
82
+ #: bulk-delete.php:398 bulk-delete.php:485 bulk-delete.php:585
83
+ #: bulk-delete.php:689
84
  msgid "Move to Trash"
85
  msgstr ""
86
 
87
+ #: bulk-delete.php:399 bulk-delete.php:486 bulk-delete.php:586
88
+ #: bulk-delete.php:690
89
  msgid "Delete permanently"
90
  msgstr ""
91
 
92
+ #: bulk-delete.php:406 bulk-delete.php:502 bulk-delete.php:602
93
+ #: bulk-delete.php:706
94
  msgid "Only delete first "
95
  msgstr ""
96
 
97
+ #: bulk-delete.php:407 bulk-delete.php:503 bulk-delete.php:603
98
+ #: bulk-delete.php:707
99
  msgid "posts."
100
  msgstr ""
101
 
102
+ #: bulk-delete.php:408 bulk-delete.php:504 bulk-delete.php:604
103
+ #: bulk-delete.php:708
104
  msgid ""
105
  "Use this option if there are more than 1000 posts and the script timesout."
106
  msgstr ""
107
 
108
+ #: bulk-delete.php:416 bulk-delete.php:511 bulk-delete.php:611
109
+ #: bulk-delete.php:715
110
  msgid "Bulk Delete "
111
  msgstr ""
112
 
113
+ #: bulk-delete.php:430
114
  msgid "By Category"
115
  msgstr ""
116
 
117
+ #: bulk-delete.php:432
118
  msgid "Select the categories whose post you want to delete"
119
  msgstr ""
120
 
121
+ #: bulk-delete.php:459
122
  msgid "All Categories"
123
  msgstr ""
124
 
125
+ #: bulk-delete.php:474 bulk-delete.php:574 bulk-delete.php:678
126
  msgid "Only restrict to posts which are "
127
  msgstr ""
128
 
129
+ #: bulk-delete.php:476 bulk-delete.php:576 bulk-delete.php:680
130
  msgid "older than"
131
  msgstr ""
132
 
133
+ #: bulk-delete.php:477 bulk-delete.php:577 bulk-delete.php:681
134
  msgid "posted within last"
135
  msgstr ""
136
 
137
+ #: bulk-delete.php:479 bulk-delete.php:579 bulk-delete.php:683
138
  msgid "days"
139
  msgstr ""
140
 
141
+ #: bulk-delete.php:492 bulk-delete.php:592 bulk-delete.php:696
142
  msgid "Public posts"
143
  msgstr ""
144
 
145
+ #: bulk-delete.php:493 bulk-delete.php:593 bulk-delete.php:697
146
  msgid "Private Posts"
147
  msgstr ""
148
 
149
+ #: bulk-delete.php:529
150
  msgid "By Tags"
151
  msgstr ""
152
 
153
+ #: bulk-delete.php:532
154
  msgid "Select the tags whose post you want to delete"
155
  msgstr ""
156
 
157
+ #: bulk-delete.php:559
158
  msgid "All Tags"
159
  msgstr ""
160
 
161
+ #: bulk-delete.php:632
162
  msgid "By Taxonomies"
163
  msgstr ""
164
 
165
+ #: bulk-delete.php:634
166
  msgid "Select the taxonomies whose post you want to delete"
167
  msgstr ""
168
 
169
+ #: bulk-delete.php:663
170
  msgid "All Taxonomies"
171
  msgstr ""
172
 
173
+ #: bulk-delete.php:731
174
+ msgid "Debug Information"
175
  msgstr ""
176
 
177
+ #: bulk-delete.php:733
178
  msgid ""
179
+ "If you are seeing a blank page after clicking the Bulk Delete button, then "
 
 
180
  msgstr ""
181
 
182
+ #: bulk-delete.php:733
183
+ msgid "check out this FAQ"
184
  msgstr ""
185
 
186
+ #: bulk-delete.php:734
187
+ msgid "You also need need the following debug information."
188
  msgstr ""
189
 
190
+ #: bulk-delete.php:737
191
+ msgid "Available memory size "
192
  msgstr ""
193
 
194
+ #: bulk-delete.php:741
195
+ msgid "Script time out "
 
 
196
  msgstr ""
197
 
198
+ #: bulk-delete.php:745
199
+ msgid "Script input time "
 
 
200
  msgstr ""
201
 
202
+ #: bulk-delete.php:752
203
  msgid ""
204
  "If you are looking to move posts in bulk, instead of deleting then try out "
205
  "my "
206
  msgstr ""
207
 
208
+ #: bulk-delete.php:752
209
  msgid "Bulk Move Plugin"
210
  msgstr ""
211
 
212
+ #: bulk-delete.php:857
 
 
 
 
 
 
 
 
213
  msgid "Manage"
214
  msgstr ""
215
 
216
+ #: bulk-delete.php:870
217
  msgid "plugin"
218
  msgstr ""
219
 
220
+ #: bulk-delete.php:870
221
  msgid "Version"
222
  msgstr ""
223
 
224
+ #: bulk-delete.php:870
225
  msgid "by"
226
  msgstr ""
227
 
228
+ #: bulk-delete.php:931
229
+ msgid "Are you sure you want to delete all the selected posts"
230
+ msgstr ""
231
+
232
+ #: bulk-delete.php:933
233
+ msgid "Please select at least one"
234
+ msgstr ""
235
+
236
  #. Plugin Name of the plugin/theme
237
  msgid "Bulk Delete"
238
  msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: post, comment, delete, bulk, draft, revision, page
4
  Requires at least: 2.0
5
  Tested up to: 3.3.1
6
  Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
7
- Stable tag: 1.9
8
 
9
  Bulk delete posts from selected categories or tags
10
 
@@ -66,11 +66,13 @@ In particular try to change the following settings
66
  * max_input_time = 30; Maximum amount of time each script may spend parsing request data
67
  * memory_limit = 256M ; Maximum amount of memory a script may consume (8MB)
68
 
 
 
69
  == Screenshot ==
70
 
71
  1. Delete posts based on type
72
 
73
- 2. Delete posts based on date, post visibilty or choose to move them to trash or delete permanently
74
 
75
  3. Delete Posts by Categories or Tags
76
 
@@ -141,6 +143,11 @@ In particular try to change the following settings
141
  * Fixed issues with translations
142
  * Added Rusian translations
143
 
 
 
 
 
 
144
  ==Readme Generator==
145
 
146
  This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.
4
  Requires at least: 2.0
5
  Tested up to: 3.3.1
6
  Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
7
+ Stable tag: 2.0
8
 
9
  Bulk delete posts from selected categories or tags
10
 
66
  * max_input_time = 30; Maximum amount of time each script may spend parsing request data
67
  * memory_limit = 256M ; Maximum amount of memory a script may consume (8MB)
68
 
69
+ Additional FAQ and troubleshooting guide can be found in the [Plugins's homepage][1]
70
+
71
  == Screenshot ==
72
 
73
  1. Delete posts based on type
74
 
75
+ 2. Delete posts based on date, post visibility or choose to move them to trash or delete permanently
76
 
77
  3. Delete Posts by Categories or Tags
78
 
143
  * Fixed issues with translations
144
  * Added Rusian translations
145
 
146
+ ###v2.0 (2012-04-016) Dev Time: 10 hours
147
+ * Fixed a major issue in how dates were handled.
148
+ * Major UI revamp
149
+ * Added debug information and support urls
150
+
151
  ==Readme Generator==
152
 
153
  This Readme file was generated using <a href = 'http://sudarmuthu.com/wordpress/wp-readme'>wp-readme</a>, which generates readme files for WordPress Plugins.