Delete Pending Comments - Version 0.0.2

Version Description

  • Fix initial release
Download this release

Release Info

Developer nkuttler
Plugin Icon wp plugin Delete Pending Comments
Version 0.0.2
Comparing to
See all releases

Version 0.0.2

delete-pending-comments.php ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Delete Pending Comments
4
+ Plugin URI: http://www.nicolaskuttler.de/wordpress/delete-pending-comments/
5
+ Author: Nicolas Kuttler
6
+ Author URI: http://www.nicolaskuttler.de/
7
+ Description:
8
+ Version: 0.0.1
9
+ */
10
+
11
+ add_action( 'init', 'nkdeletepending_init' );
12
+ function nkdeletepending_init() {
13
+ $plugin_path = plugin_basename( dirname( __FILE__ ) .'/translations' );
14
+ load_plugin_textdomain( 'delete-pending-comments', '', $plugin_path );
15
+ }
16
+
17
+ add_action('admin_menu', 'nkdeletepending_add_pages');
18
+ function nkdeletepending_add_pages() {
19
+ add_options_page(__('Delete Pending Comments', 'delete-pending-comments' ), __('Delete Pending Comments', 'delete-pending-comments' ), 10, 'nkdeletepending', 'nkdeletepending_options_page');
20
+ function nkdeletepending_options_page() { ?>
21
+ <div class="wrap" style="margin: 5mm; max-width: 80ex;">
22
+ <?php
23
+ if ($_POST['nkdeletepending']) {
24
+ echo '<div id="message" class="updated fade">';
25
+ if ($_POST['nkdeletepending']) {
26
+ if ( stripslashes($_POST['nkdeletepending']) == __('I am sure I want to delete all pending comments and realize this can\'t be undone', 'delete-pending-comments' ) ) {
27
+ _e('I deleted all pending comments!', 'delete-pending-comments' );
28
+ }
29
+ else {
30
+ _e('Please try again. Did you copy the text properly?', 'delete-pending-comments' );
31
+ }
32
+ $comments = get_comments('status=hold');
33
+ foreach ($comments as $comment) {
34
+ wp_delete_comment($comment->comment_ID);
35
+ }
36
+ }
37
+ echo '<br/>';
38
+ echo '</div>';
39
+ }
40
+ ?>
41
+ <h2><?php _e('Delete Pending Comments', 'delete-pending-comments') ?></h2>
42
+ <p>
43
+ <?php _e('You have to type the following text into the form to delete all pending comments', 'delete-pending-comments' ); ?>
44
+ </p>
45
+ <blockquote style="font-style: italic;" >
46
+ <?php _e('I am sure I want to delete all pending comments and realize this can\'t be undone', 'delete-pending-comments' ); ?>
47
+ </blockquote>
48
+
49
+ <form action="" method="post">
50
+ <input name="nkdeletepending" type="text" size="80" >
51
+ <input type="submit" class="button-primary" value="<?php _e('Delete Pending Comments', 'delete-pending-comments') ?>">
52
+ </form>
53
+
54
+ <h3>My plugins</h3>
55
+ <p>
56
+ <a href="http://www.nkuttler.de/wordpress/nktagcloud/">Better tag cloud</a>:
57
+ I was pretty unhappy with the default WordPress tag cloud widget. This one is more powerful and offers a list HTML markup that is consistent with most other widgets.
58
+ <br/>
59
+ <a href="http://www.nkuttler.de/wordpress/nkthemeswitch/">Theme switch</a>:
60
+ I like to tweak my main theme that I use on a variety of blogs. If you have ever done this you know how annoying it can be to break things for visitors of your blog. This plugin allows you to use a different theme than the one used for your visitors when you are logged in.
61
+ <br/>
62
+ <a href="http://www.nkuttler.de/wordpress/zero-conf-mail/">Zero Conf Mail</>:
63
+ Simple mail contact form, the way I like it. No ajax, no bloat. No configuration necessary, but possible.
64
+ <br/>
65
+ <a href="http://www.nkuttler.de/wordpress/nkmovecomments/">Move WordPress comments</a>:
66
+ This plugin adds a small form to every comment on your blog. The form is only added for admins and allows you to <a href="http://www.nkuttler.de/nkmovecomments/">move comments</a> to a different post/page and to fix comment threading.
67
+ <br/>
68
+ <a href="http://www.nkuttler.de/wordpress/nksnow/">Snow and more</a>:
69
+ This one lets you see snowflakes, leaves, raindrops, balloons or custom images fall down or float upwards on your blog.
70
+ <br/>
71
+ <a href="http://www.nkuttler.de/wordpress/nkfireworks/">Fireworks</a>:
72
+ The name says it all, see fireworks on your blog!
73
+ <br/>
74
+ <a href="http://www.rhymebox.de/blog/rhymebox-widget/">Rhyming widget</a>:
75
+ I wrote a little online <a href="http://www.rhymebox.com/">rhyming dictionary</a>. This is a widget to search it directly from one of your sidebars.
76
+ </p>
77
+
78
+ </div>
79
+ <?php
80
+ }
81
+ }
82
+
83
+ ?>
license.txt ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* Copyright 2009 Nicolas Kuttler (email : wp@nicolaskuttler.de )
3
+
4
+ This program is free software; you can redistribute it and/or modify
5
+ it under the terms of the GNU General Public License as published by
6
+ the Free Software Foundation; either version 2 of the License, or
7
+ (at your option) any later version.
8
+
9
+ This program is distributed in the hope that it will be useful,
10
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ GNU General Public License for more details.
13
+
14
+ You should have received a copy of the GNU General Public License
15
+ along with this program; if not, write to the Free Software
16
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
+ */
18
+ ?>
19
+
readme.txt ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Delete Pending Comments ===
2
+ Contributors: nkuttler
3
+ Author URI: http://www.nicolaskuttler.de/
4
+ Plugin URI: http://www.nicolaskuttler.de/wordpress/nkdeletepending/
5
+ Donate link: http://www.amazon.de/gp/registry/24F64AHKD51LY
6
+ Tags: admin, plugin, comments, spam, pending, delete, delete comments, mass delete, mass delete comments
7
+ Requires at least: 2.7
8
+ Tested up to: 2.8.4
9
+ Stable tag: 0.0.2
10
+
11
+ A quick way to delete all pending comments. Useful for victims of spammer attacks.
12
+
13
+ == Description ==
14
+ <p>
15
+ This plugin is a quick way to delete all pending comments. It's useful for victims of spammer attacks.
16
+ </p>
17
+
18
+ <h3>My plugins</h3>
19
+ <p>
20
+ <a href="http://www.nkuttler.de/wordpress/nktagcloud/">Better tag cloud</a>:
21
+ I was pretty unhappy with the default WordPress tag cloud widget. This one is more powerful and offers a list HTML markup that is consistent with most other widgets.
22
+ <br/>
23
+ <a href="http://www.nkuttler.de/wordpress/nkthemeswitch/">Theme switch</a>:
24
+ I like to tweak my main theme that I use on a variety of blogs. If you have ever done this you know how annoying it can be to break things for visitors of your blog. This plugin allows you to use a different theme than the one used for your visitors when you are logged in.
25
+ <br/>
26
+ <a href="http://www.nkuttler.de/wordpress/zero-conf-mail/">Zero Conf Mail</>:
27
+ Simple mail contact form, the way I like it. No ajax, no bloat. No configuration necessary, but possible.
28
+ <br/>
29
+ <a href="http://www.nkuttler.de/wordpress/nkmovecomments/">Move WordPress comments</a>:
30
+ This plugin adds a small form to every comment on your blog. The form is only added for admins and allows you to <a href="http://www.nkuttler.de/nkmovecomments/">move comments</a> to a different post/page and to fix comment threading.
31
+ <br/>
32
+ <a href="http://www.nkuttler.de/wordpress/nksnow/">Snow and more</a>:
33
+ This one lets you see snowflakes, leaves, raindrops, balloons or custom images fall down or float upwards on your blog.
34
+ <br/>
35
+ <a href="http://www.nkuttler.de/wordpress/nkfireworks/">Fireworks</a>:
36
+ The name says it all, see fireworks on your blog!
37
+ <br/>
38
+ <a href="http://www.rhymebox.de/blog/rhymebox-widget/">Rhyming widget</a>:
39
+ I wrote a little online <a href="http://www.rhymebox.com/">rhyming dictionary</a>. This is a widget to search it directly from one of your sidebars.
40
+ </p>
41
+
42
+
43
+ == Installation ==
44
+ Unzip, upload to your plugin directory, enable the plugin and configure it as needed. If you want to add the widget do that in your dashboard's Design section.
45
+
46
+ == Screenshots ==
47
+ 1. The configuration menu.
48
+
49
+ == Frequently Asked Questions ==
50
+ None yet.
51
+
52
+ == Changelog ==
53
+ = 0.0.2 =
54
+ * Fix initial release
55
+ = 0.0.1 =
56
+ * Initial release
screenshot-1.png ADDED
Binary file
translations/delete-pending-comments-de_DE.mo ADDED
Binary file
translations/delete-pending-comments-de_DE.po ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # German translations for PACKAGE package
2
+ # German messages for PACKAGE.
3
+ # Copyright (C) 2009 Nicolas Kuttler
4
+ # This file is distributed under the same license as the PACKAGE package.
5
+ # Nicolas Kuttler <wp@nicolaskuttler.de>, 2009.
6
+ #
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: PACKAGE VERSION\n"
10
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/delete-pending-comments\n"
11
+ "POT-Creation-Date: 2009-10-11 15:36+0000\n"
12
+ "PO-Revision-Date: 2009-10-11 17:37+0200\n"
13
+ "Last-Translator: Nicolas Kuttler <wp@nicolaskuttler.de>\n"
14
+ "Language-Team: German\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=ISO-8859-1\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
+
20
+ #: delete-pending-comments.php:19
21
+ msgid "Delete Pending"
22
+ msgstr "Lösche Unveröffentlichte"
23
+
24
+ #: delete-pending-comments.php:26 delete-pending-comments.php:43
25
+ msgid "I am sure I want to delete all pending comments and realize this can't be undone"
26
+ msgstr "Ich bin sicher dass ich alle unveröffentlichten Kommentare löschen will und bin mir darüber im klaren dass dies nicht Rückgängig gemacht werden kann"
27
+
28
+ #: delete-pending-comments.php:27
29
+ msgid "I deleted all pending comments!"
30
+ msgstr "Ich habe alle bisher unveröffentlichten Kommentare gelöscht"
31
+
32
+ #: delete-pending-comments.php:40
33
+ msgid "You have to type the following text into the form to delete all pending comments"
34
+ msgstr "Du musste den folgenden Text in das Eingabefeld kopieren um alle unveröffenlichten Kommentare zu löschen"
35
+
36
+ #. Plugin Name of an extension
37
+ msgid "Delete Pending Comments"
38
+ msgstr "Lösche unveröffentlichte Komentare"
39
+
40
+ #. Plugin URI of an extension
41
+ msgid "http://www.nicolaskuttler.de/wordpress/delete-pending-comments/"
42
+ msgstr ""
43
+
44
+ #. Author of an extension
45
+ msgid "Nicolas Kuttler"
46
+ msgstr ""
47
+
48
+ #. Author URI of an extension
49
+ msgid "http://www.nicolaskuttler.de/"
50
+ msgstr ""
translations/delete-pending-comments.pot ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR Nicolas Kuttler
3
+ # This file is distributed under the same license as the PACKAGE package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: PACKAGE VERSION\n"
10
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/delete-pending-comments\n"
11
+ "POT-Creation-Date: 2009-10-11 15:36+0000\n"
12
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "MIME-Version: 1.0\n"
16
+ "Content-Type: text/plain; charset=CHARSET\n"
17
+ "Content-Transfer-Encoding: 8bit\n"
18
+
19
+ #: delete-pending-comments.php:19
20
+ msgid "Delete Pending"
21
+ msgstr ""
22
+
23
+ #: delete-pending-comments.php:26 delete-pending-comments.php:43
24
+ msgid ""
25
+ "I am sure I want to delete all pending comments and realize this can't be "
26
+ "undone"
27
+ msgstr ""
28
+
29
+ #: delete-pending-comments.php:27
30
+ msgid "I deleted all pending comments!"
31
+ msgstr ""
32
+
33
+ #: delete-pending-comments.php:40
34
+ msgid ""
35
+ "You have to type the following text into the form to delete all pending "
36
+ "comments"
37
+ msgstr ""
38
+
39
+ #. Plugin Name of an extension
40
+ msgid "Delete Pending Comments"
41
+ msgstr ""
42
+
43
+ #. Plugin URI of an extension
44
+ msgid "http://www.nicolaskuttler.de/wordpress/delete-pending-comments/"
45
+ msgstr ""
46
+
47
+ #. Author of an extension
48
+ msgid "Nicolas Kuttler"
49
+ msgstr ""
50
+
51
+ #. Author URI of an extension
52
+ msgid "http://www.nicolaskuttler.de/"
53
+ msgstr ""