Delete Pending Comments - Version 0.1.1.1

Version Description

  • Fix version number...
Download this release

Release Info

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

Code changes from version 0.1.0 to 0.1.1.1

css/admin.css ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* version 0.2.4 */
2
+ p, li {
3
+ max-width: 100ex;
4
+ }
5
+ p {
6
+ text-align: justify;
7
+ }
8
+ thead {
9
+ text-align: center;
10
+ font-weight: bold;
11
+ }
12
+ blockquote {
13
+ font-style: italic;
14
+ max-width: 80ex;
15
+ }
16
+
17
+ .box,
18
+ #nkbox {
19
+ margin: 16px 8px;
20
+ padding: 8px;
21
+ border-radius: 6px;
22
+ -moz-border-radius: 6px;
23
+ -webkit-border-radius: 6px;
24
+ }
25
+ #nkbox {
26
+ float: right;
27
+ background-color: #ddf;
28
+ }
29
+ #nkbox div {
30
+ text-align: right;
31
+ font-size: smaller;
32
+ clear: right;
33
+ }
34
+ #nkbox ul {
35
+ margin: 4px 0;
36
+ }
37
+ #nkbox ul li {
38
+ margin: 4px 0 0 4px;
39
+ }
40
+ #nkbox .gravatar {
41
+ float: right;
42
+ margin: 8px 0 0 8px;
43
+ width: 55px;
44
+ text-align: center;
45
+ }
46
+
47
+ #clearnone {
48
+ clear: none;
49
+ }
50
+
51
+ .nkthemeswitch-admin {
52
+ text-align: center;
53
+ }
54
+ a.nkthemeswitch {
55
+ line-height: 28px;
56
+ padding: 4px 4px;
57
+ background: #ddf;
58
+ color: #0d0d0d;
59
+ text-decoration: none;
60
+ font-size: 12px;
61
+ border: 1px solid #fff;
62
+ border-radius: 6px;
63
+ -moz-border-radius: 6px;
64
+ -webkit-border-radius: 6px;
65
+ white-space: pre;
66
+ }
67
+ a.nkthemeswitch:hover {
68
+ background: #eef;
69
+ border: 1px solid #ccf;
70
+ }
71
+
72
+ .nksnow_select_wrap {
73
+ margin-right: 260px;
74
+ }
75
+ .nksnow_select {
76
+ border: 1px solid #ccc;
77
+ background: #ccf;
78
+ float: left;
79
+ text-align: center;
80
+ padding: 0 4px 8px 4px;
81
+ margin: 0 2px 2px 0;
82
+ }
83
+
84
+ #zcmail * {
85
+ display: block;
86
+ }
delete-pending-comments.php CHANGED
@@ -5,7 +5,8 @@ Plugin URI: http://www.nkuttler.de/wordpress/delete-pending-comments/
5
  Author: Nicolas Kuttler
6
  Author URI: http://www.nkuttler.de/
7
  Description: A quick way to delete all pending comments. Useful for victims of spammer attacks.
8
- Version: 0.1.0
 
9
  */
10
 
11
  /**
5
  Author: Nicolas Kuttler
6
  Author URI: http://www.nkuttler.de/
7
  Description: A quick way to delete all pending comments. Useful for victims of spammer attacks.
8
+ Version: 0.1.1.1
9
+ Text Domain: delete-pending-comments
10
  */
11
 
12
  /**
inc/admin.css DELETED
@@ -1,44 +0,0 @@
1
- /* version 0.2.1 */
2
- p {
3
- max-width: 80ex;
4
- }
5
- thead {
6
- text-align: center;
7
- font-weight: bold;
8
- }
9
- blockquote {
10
- font-style: italic;
11
- max-width: 80ex;
12
- }
13
-
14
- .box,
15
- #nkbox {
16
- margin: 16px 8px;
17
- padding: 8px;
18
- border-radius: 6px;
19
- -moz-border-radius: 6px;
20
- -webkit-border-radius: 6px;
21
- float: right;
22
- background-color: #ddf;
23
- }
24
- #nkbox div {
25
- text-align: right;
26
- font-size: smaller;
27
- clear: right;
28
- }
29
- #nkbox ul {
30
- margin: 4px 0;
31
- }
32
- #nkbox ul li {
33
- margin: 4px 0 0 4px;
34
- }
35
- #nkbox .gravatar {
36
- float: right;
37
- margin: 8px 0 0 8px;
38
- width: 55px;
39
- text-align: center;
40
- }
41
-
42
- #clearnone {
43
- clear: none;
44
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
inc/admin.php CHANGED
@@ -18,7 +18,7 @@ function nkdeletepending_load_translation_file() {
18
  * @todo check if the path is correct
19
  */
20
  function nkdeletepending_css_admin() { ?>
21
- <link rel="stylesheet" href="<?php echo get_bloginfo( 'home' ) . '/' . PLUGINDIR . '/delete-pending-comments/inc/admin.css' ?>" type="text/css" media="all" /> <?php
22
  }
23
 
24
  /**
@@ -27,6 +27,20 @@ function nkdeletepending_css_admin() { ?>
27
  function nkdeletepending_add_pages() {
28
  $page = add_submenu_page( 'edit-comments.php', __( 'Delete Pending Comments', 'delete-pending-comments' ), __( 'Delete Pending Comments', 'delete-pending-comments' ), 10, 'delete-pending-comments', 'nkdeletepending_options_page' );
29
  add_action( 'admin_head-' . $page, 'nkdeletepending_css_admin' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  }
31
 
32
  /**
@@ -79,8 +93,9 @@ function nkdeletepending_options_page() {
79
  <form action="" method="post">
80
  <?php function_exists( 'wp_nonce_field' ) ? wp_nonce_field( 'delete-pending-comments' ) : null; ?>
81
  <input name="nkdeletepending" type="text" size="80" >
82
- <br />
83
- <input type="submit" class="button-primary" value="<?php _e( 'Delete Pending Comments', 'delete-pending-comments' ) ?>">
 
84
  </form>
85
  </div>
86
  <?php
18
  * @todo check if the path is correct
19
  */
20
  function nkdeletepending_css_admin() { ?>
21
+ <link rel="stylesheet" href="<?php echo get_bloginfo( 'home' ) . '/' . PLUGINDIR . '/delete-pending-comments/css/admin.css' ?>" type="text/css" media="all" /> <?php
22
  }
23
 
24
  /**
27
  function nkdeletepending_add_pages() {
28
  $page = add_submenu_page( 'edit-comments.php', __( 'Delete Pending Comments', 'delete-pending-comments' ), __( 'Delete Pending Comments', 'delete-pending-comments' ), 10, 'delete-pending-comments', 'nkdeletepending_options_page' );
29
  add_action( 'admin_head-' . $page, 'nkdeletepending_css_admin' );
30
+
31
+ // Add icon
32
+ add_filter( 'ozh_adminmenu_icon_delete-pending-comments', 'delete_pending_comments_icon' );
33
+ }
34
+
35
+ /**
36
+ * Return admin menu icon
37
+ *
38
+ * @return string path to icon
39
+ *
40
+ * @since 0.1.0.1
41
+ */
42
+ function delete_pending_comments_icon() {
43
+ return get_bloginfo( 'home' ) . '/' . PLUGINDIR . '/delete-pending-comments/pic/comment_delete.png';
44
  }
45
 
46
  /**
93
  <form action="" method="post">
94
  <?php function_exists( 'wp_nonce_field' ) ? wp_nonce_field( 'delete-pending-comments' ) : null; ?>
95
  <input name="nkdeletepending" type="text" size="80" >
96
+ <p class="submit">
97
+ <input type="submit" class="button-primary" value="<?php _e( 'Delete Pending Comments', 'delete-pending-comments' ) ?>">
98
+ </p>
99
  </form>
100
  </div>
101
  <?php
inc/nkuttler.php CHANGED
@@ -53,11 +53,5 @@ if ( !function_exists( 'nkuttler021_links' ) ) {
53
  </div> <?php
54
  }
55
  }
56
- // just to be on the safe side
57
- if ( !function_exists( 'nkuttler_links' ) ) {
58
- function nkuttler_links( $plugin ) {
59
- nkuttler0_2_1_links( $plugin );
60
- }
61
- }
62
 
63
  ?>
53
  </div> <?php
54
  }
55
  }
 
 
 
 
 
 
56
 
57
  ?>
pic/comment_delete.png ADDED
Binary file
readme.txt CHANGED
@@ -6,7 +6,7 @@ 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.9-rare
9
- Stable tag: 0.1.0
10
 
11
  A quick way to delete all pending comments. Useful for victims of spammer attacks.
12
 
@@ -43,15 +43,23 @@ I wrote a little online <a href="http://www.rhymebox.com/">rhyming dictionary</a
43
  </p>
44
 
45
  == Installation ==
46
- Unzip, upload to your plugin directory. You can delete the comments under the 'Comments' menu.
47
 
48
  == Screenshots ==
49
  1. The delete comments page (comments menu).
50
 
51
  == Frequently Asked Questions ==
52
- None yet.
 
 
 
53
 
54
  == Changelog ==
 
 
 
 
 
55
  = 0.1.0 =
56
  * Improve I18N, styling, layout, readability, add info
57
  = 0.0.3 =
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.9-rare
9
+ Stable tag: 0.1.1.1
10
 
11
  A quick way to delete all pending comments. Useful for victims of spammer attacks.
12
 
43
  </p>
44
 
45
  == Installation ==
46
+ Unzip, upload to your plugin directory. You can delete the comments under the top level 'Comments' menu.
47
 
48
  == Screenshots ==
49
  1. The delete comments page (comments menu).
50
 
51
  == Frequently Asked Questions ==
52
+ <p>
53
+ Q: How do I delete the pending comments?<br />
54
+ A: The plugin page is located under the top level menu entry "Comments". Copy and paste the text, submit, done.
55
+ </p>
56
 
57
  == Changelog ==
58
+ = 0.1.1.1 =
59
+ * Fix version number...
60
+ = 0.1.1 =
61
+ * Add icon by <a href="http://www.famfamfam.com">famfamfam</a> to the <a href="http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/">Admin Drop Down Menu</a>.
62
+ * Re-organize files
63
  = 0.1.0 =
64
  * Improve I18N, styling, layout, readability, add info
65
  = 0.0.3 =
translations/delete-pending-comments-de_DE.mo CHANGED
Binary file
translations/delete-pending-comments-de_DE.po CHANGED
@@ -32,7 +32,7 @@ msgstr "Ich habe alle bisher unveröffentlichten Kommentare gelöscht"
32
 
33
  #: inc/admin.php:57
34
  msgid "Please try again. Did you copy the text properly?"
35
- msgstr "Versuch es bitte noch ein mal. Hast du den Text vollständig kopiert?"
36
 
37
  #: inc/admin.php:63
38
  msgid "It looks like there aren't any pending comments!"
@@ -43,27 +43,27 @@ msgid ""
43
  "You have to type the following text into the form to delete all pending "
44
  "comments:"
45
  msgstr ""
46
- "Du musste den folgenden Text in das Eingabefeld kopieren um alle "
47
  "unveröffenlichten Kommentare zu löschen:"
48
 
49
  #: inc/nkuttler.php:24
50
  msgid "Do you like this plugin?"
51
- msgstr "Gefällt Dir dieses plugin?"
52
 
53
  #: inc/nkuttler.php:32
54
  #, php-format
55
  msgid "<a href=\"%s\">Vote</a> for it"
56
- msgstr "<a href=\"%s\">Stimm</a> für es ab"
57
 
58
  #: inc/nkuttler.php:35
59
  #, php-format
60
  msgid "<a href=\"%s\">Visit</a> it's homepage"
61
- msgstr "<a href=\"%s\">Besuch</a> seine Webseite"
62
 
63
  #: inc/nkuttler.php:38
64
  #, php-format
65
  msgid "<a href=\"%s\">Subscribe</a> the feed"
66
- msgstr "<a href=\"%s\">Abonniere</a> den feed"
67
 
68
  #: inc/nkuttler.php:41
69
  msgid "About the author"
@@ -78,7 +78,7 @@ msgstr "Mein <a href=\"%s\">Blog</a>"
78
  #, php-format
79
  msgid "Subscribe via <a href=\"%s\">RSS</a> or <a href=\"%s\">email</a>"
80
  msgstr ""
81
- "Abonniere den <a href=\"%s\">RSS feed</a> (als <a href=\"%s\">E-Mail</a>)"
82
 
83
  #: inc/nkuttler.php:51
84
  msgid "My other plugins"
@@ -93,7 +93,7 @@ msgid ""
93
  "A quick way to delete all pending comments. Useful for victims of spammer "
94
  "attacks."
95
  msgstr ""
96
- "Ein schneller Weg alle unveröffentlichten Kommentare zu veröffentlichen. "
97
  "Nützlich für die Opfer von Spam-Angriffen."
98
 
99
  #. Author of an extension
32
 
33
  #: inc/admin.php:57
34
  msgid "Please try again. Did you copy the text properly?"
35
+ msgstr "Versuchen Sie es bitte noch ein mal. Haben Sie den Text vollständig kopiert?"
36
 
37
  #: inc/admin.php:63
38
  msgid "It looks like there aren't any pending comments!"
43
  "You have to type the following text into the form to delete all pending "
44
  "comments:"
45
  msgstr ""
46
+ "Sie müssen den folgenden Text in das Eingabefeld kopieren um alle "
47
  "unveröffenlichten Kommentare zu löschen:"
48
 
49
  #: inc/nkuttler.php:24
50
  msgid "Do you like this plugin?"
51
+ msgstr "Gefällt Ihnen dieses plugin?"
52
 
53
  #: inc/nkuttler.php:32
54
  #, php-format
55
  msgid "<a href=\"%s\">Vote</a> for it"
56
+ msgstr "<a href=\"%s\">Stimmen</a> Sie für es ab"
57
 
58
  #: inc/nkuttler.php:35
59
  #, php-format
60
  msgid "<a href=\"%s\">Visit</a> it's homepage"
61
+ msgstr "<a href=\"%s\">Besuchen</a> Sie seine Webseite"
62
 
63
  #: inc/nkuttler.php:38
64
  #, php-format
65
  msgid "<a href=\"%s\">Subscribe</a> the feed"
66
+ msgstr "<a href=\"%s\">Abonnieren</a> Sie den feed"
67
 
68
  #: inc/nkuttler.php:41
69
  msgid "About the author"
78
  #, php-format
79
  msgid "Subscribe via <a href=\"%s\">RSS</a> or <a href=\"%s\">email</a>"
80
  msgstr ""
81
+ "Abonnieren Sie den <a href=\"%s\">RSS feed</a> (als <a href=\"%s\">E-Mail</a>)"
82
 
83
  #: inc/nkuttler.php:51
84
  msgid "My other plugins"
93
  "A quick way to delete all pending comments. Useful for victims of spammer "
94
  "attacks."
95
  msgstr ""
96
+ "Ein schneller Weg alle unveröffentlichten Kommentare zu löschen. "
97
  "Nützlich für die Opfer von Spam-Angriffen."
98
 
99
  #. Author of an extension
translations/mine.POT ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ #: inc/nkuttler.php:23
3
+ msgid "Do you like this plugin?"
4
+ msgstr ""
5
+
6
+ #: inc/nkuttler.php:31
7
+ #, php-format
8
+ msgid "<a href=\"%s\">Vote</a> for it"
9
+ msgstr ""
10
+
11
+ #: inc/nkuttler.php:34
12
+ #, php-format
13
+ msgid "<a href=\"%s\">Visit</a> it's homepage"
14
+ msgstr ""
15
+
16
+ #: inc/nkuttler.php:37
17
+ #, php-format
18
+ msgid "<a href=\"%s\">Subscribe</a> the feed"
19
+ msgstr ""
20
+
21
+ #: inc/nkuttler.php:40
22
+ msgid "About the author"
23
+ msgstr ""
24
+
25
+ #: inc/nkuttler.php:43
26
+ #, php-format
27
+ msgid "My <a href=\"%s\">blog</a>"
28
+ msgstr ""
29
+
30
+ #: inc/nkuttler.php:46
31
+ #, php-format
32
+ msgid "Subscribe via <a href=\"%s\">RSS</a> or <a href=\"%s\">email</a>"
33
+ msgstr ""
34
+
35
+ #: inc/nkuttler.php:50
36
+ msgid "My other plugins"
37
+ msgstr ""