Gwolle Guestbook - Version 2.3.1

Version Description

  • 2017-08-29
  • Use correct class for menu-counters.
Download this release

Release Info

Developer mpol
Plugin Icon 128x128 Gwolle Guestbook
Version 2.3.1
Comparing to
See all releases

Code changes from version 2.3.0 to 2.3.1

admin/gb-ajax-management.php CHANGED
@@ -74,12 +74,12 @@ function gwolle_gb_ajax_javascript() {
74
 
75
  // Countdown counter in admin menu, toolbar and top menu
76
  if ( jQuery( 'tr#entry_' + entry_id ).hasClass('unchecked') && jQuery( 'tr#entry_' + entry_id ).hasClass('nospam') && jQuery( 'tr#entry_' + entry_id ).hasClass('notrash') ) {
77
- var gwolle_gb_menu_counter = jQuery('li#toplevel_page_gwolle-gb-gwolle-gb a.menu-top span.theme-count').text();
78
- var old_gwolle_gb_menu_counter = new Number( gwolle_gb_menu_counter );
79
- var new_gwolle_gb_menu_counter = old_gwolle_gb_menu_counter - 1;
80
- var new_gwolle_gb_menu_counter_str = new_gwolle_gb_menu_counter.toString();
81
 
82
- jQuery('li#toplevel_page_gwolle-gb-gwolle-gb span.theme-count').text( new_gwolle_gb_menu_counter );
83
  jQuery('li#wp-admin-bar-gwolle-gb span.awaiting-mod.pending-count').text( new_gwolle_gb_menu_counter );
84
  jQuery('ul.subsubsub span.count.gwolle_gb_new').text( '(' + new_gwolle_gb_menu_counter_str + ')' );
85
  }
@@ -115,12 +115,12 @@ function gwolle_gb_ajax_javascript() {
115
 
116
  // Countup counter in admin menu, toolbar and top menu
117
  if ( jQuery( 'tr#entry_' + entry_id ).hasClass('unchecked') && jQuery( 'tr#entry_' + entry_id ).hasClass('nospam') && jQuery( 'tr#entry_' + entry_id ).hasClass('notrash') ) {
118
- var gwolle_gb_menu_counter = jQuery('li#toplevel_page_gwolle-gb-gwolle-gb a.menu-top span.theme-count').text();
119
- var old_gwolle_gb_menu_counter = new Number( gwolle_gb_menu_counter );
120
- var new_gwolle_gb_menu_counter = old_gwolle_gb_menu_counter + 1;
121
- var new_gwolle_gb_menu_counter_str = new_gwolle_gb_menu_counter.toString();
122
 
123
- jQuery('li#toplevel_page_gwolle-gb-gwolle-gb span.theme-count').text( new_gwolle_gb_menu_counter );
124
  jQuery('li#wp-admin-bar-gwolle-gb span.awaiting-mod.pending-count').text( new_gwolle_gb_menu_counter );
125
  jQuery('ul.subsubsub span.count.gwolle_gb_new').text( '(' + new_gwolle_gb_menu_counter_str + ')' );
126
  }
@@ -183,11 +183,11 @@ function gwolle_gb_ajax_javascript() {
183
 
184
  // Countdown counter in admin menu, toolbar
185
  if ( jQuery( '.gwolle_gb_actions' ).hasClass('unchecked') && jQuery( '.gwolle_gb_actions' ).hasClass('nospam') && jQuery( '.gwolle_gb_actions' ).hasClass('notrash') ) {
186
- var gwolle_gb_menu_counter = jQuery('li#toplevel_page_gwolle-gb-gwolle-gb a.menu-top span.theme-count').text();
187
  var old_gwolle_gb_menu_counter = new Number( gwolle_gb_menu_counter );
188
  var new_gwolle_gb_menu_counter = old_gwolle_gb_menu_counter - 1;
189
 
190
- jQuery('li#toplevel_page_gwolle-gb-gwolle-gb span.theme-count').text( new_gwolle_gb_menu_counter );
191
  jQuery('li#wp-admin-bar-gwolle-gb span.awaiting-mod.pending-count').text( new_gwolle_gb_menu_counter );
192
  }
193
 
@@ -245,11 +245,11 @@ function gwolle_gb_ajax_javascript() {
245
 
246
  // Countup counter in admin menu, toolbar
247
  if ( jQuery( '.gwolle_gb_actions' ).hasClass('unchecked') && jQuery( '.gwolle_gb_actions' ).hasClass('nospam') && jQuery( '.gwolle_gb_actions' ).hasClass('notrash') ) {
248
- var gwolle_gb_menu_counter = jQuery('li#toplevel_page_gwolle-gb-gwolle-gb a.menu-top span.theme-count').text();
249
  var old_gwolle_gb_menu_counter = new Number( gwolle_gb_menu_counter );
250
  var new_gwolle_gb_menu_counter = old_gwolle_gb_menu_counter + 1;
251
 
252
- jQuery('li#toplevel_page_gwolle-gb-gwolle-gb span.theme-count').text( new_gwolle_gb_menu_counter );
253
  jQuery('li#wp-admin-bar-gwolle-gb span.awaiting-mod.pending-count').text( new_gwolle_gb_menu_counter );
254
  }
255
 
74
 
75
  // Countdown counter in admin menu, toolbar and top menu
76
  if ( jQuery( 'tr#entry_' + entry_id ).hasClass('unchecked') && jQuery( 'tr#entry_' + entry_id ).hasClass('nospam') && jQuery( 'tr#entry_' + entry_id ).hasClass('notrash') ) {
77
+ var gwolle_gb_menu_counter = jQuery('li#toplevel_page_gwolle-gb-gwolle-gb a.menu-top span.awaiting-mod span').text();
78
+ var old_gwolle_gb_menu_counter = new Number( gwolle_gb_menu_counter );
79
+ var new_gwolle_gb_menu_counter = old_gwolle_gb_menu_counter - 1;
80
+ var new_gwolle_gb_menu_counter_str = new_gwolle_gb_menu_counter.toString();
81
 
82
+ jQuery('li#toplevel_page_gwolle-gb-gwolle-gb span.awaiting-mod span').text( new_gwolle_gb_menu_counter );
83
  jQuery('li#wp-admin-bar-gwolle-gb span.awaiting-mod.pending-count').text( new_gwolle_gb_menu_counter );
84
  jQuery('ul.subsubsub span.count.gwolle_gb_new').text( '(' + new_gwolle_gb_menu_counter_str + ')' );
85
  }
115
 
116
  // Countup counter in admin menu, toolbar and top menu
117
  if ( jQuery( 'tr#entry_' + entry_id ).hasClass('unchecked') && jQuery( 'tr#entry_' + entry_id ).hasClass('nospam') && jQuery( 'tr#entry_' + entry_id ).hasClass('notrash') ) {
118
+ var gwolle_gb_menu_counter = jQuery('li#toplevel_page_gwolle-gb-gwolle-gb a.menu-top span.awaiting-mod span').text();
119
+ var old_gwolle_gb_menu_counter = new Number( gwolle_gb_menu_counter );
120
+ var new_gwolle_gb_menu_counter = old_gwolle_gb_menu_counter + 1;
121
+ var new_gwolle_gb_menu_counter_str = new_gwolle_gb_menu_counter.toString();
122
 
123
+ jQuery('li#toplevel_page_gwolle-gb-gwolle-gb span.awaiting-mod span').text( new_gwolle_gb_menu_counter );
124
  jQuery('li#wp-admin-bar-gwolle-gb span.awaiting-mod.pending-count').text( new_gwolle_gb_menu_counter );
125
  jQuery('ul.subsubsub span.count.gwolle_gb_new').text( '(' + new_gwolle_gb_menu_counter_str + ')' );
126
  }
183
 
184
  // Countdown counter in admin menu, toolbar
185
  if ( jQuery( '.gwolle_gb_actions' ).hasClass('unchecked') && jQuery( '.gwolle_gb_actions' ).hasClass('nospam') && jQuery( '.gwolle_gb_actions' ).hasClass('notrash') ) {
186
+ var gwolle_gb_menu_counter = jQuery('li#toplevel_page_gwolle-gb-gwolle-gb a.menu-top span.awaiting-mod span').text();
187
  var old_gwolle_gb_menu_counter = new Number( gwolle_gb_menu_counter );
188
  var new_gwolle_gb_menu_counter = old_gwolle_gb_menu_counter - 1;
189
 
190
+ jQuery('li#toplevel_page_gwolle-gb-gwolle-gb span.awaiting-mod span').text( new_gwolle_gb_menu_counter );
191
  jQuery('li#wp-admin-bar-gwolle-gb span.awaiting-mod.pending-count').text( new_gwolle_gb_menu_counter );
192
  }
193
 
245
 
246
  // Countup counter in admin menu, toolbar
247
  if ( jQuery( '.gwolle_gb_actions' ).hasClass('unchecked') && jQuery( '.gwolle_gb_actions' ).hasClass('nospam') && jQuery( '.gwolle_gb_actions' ).hasClass('notrash') ) {
248
+ var gwolle_gb_menu_counter = jQuery('li#toplevel_page_gwolle-gb-gwolle-gb a.menu-top span.awaiting-mod span').text();
249
  var old_gwolle_gb_menu_counter = new Number( gwolle_gb_menu_counter );
250
  var new_gwolle_gb_menu_counter = old_gwolle_gb_menu_counter + 1;
251
 
252
+ jQuery('li#toplevel_page_gwolle-gb-gwolle-gb span.awaiting-mod span').text( new_gwolle_gb_menu_counter );
253
  jQuery('li#wp-admin-bar-gwolle-gb span.awaiting-mod.pending-count').text( new_gwolle_gb_menu_counter );
254
  }
255
 
gwolle-gb-hooks.php CHANGED
@@ -40,7 +40,7 @@ function gwolle_gb_adminmenu() {
40
  // Admin page: admin/welcome.php
41
  add_menu_page(
42
  esc_html__('Guestbook', 'gwolle-gb'), /* translators: Menu entry */
43
- esc_html__('Guestbook', 'gwolle-gb') . "<span class='update-plugins count-" . $count_unchecked . "'><span class='theme-count'>" . $count_unchecked . "</span></span>",
44
  'moderate_comments',
45
  GWOLLE_GB_FOLDER . '/gwolle-gb.php',
46
  'gwolle_gb_welcome',
@@ -51,7 +51,7 @@ function gwolle_gb_adminmenu() {
51
  add_submenu_page(
52
  GWOLLE_GB_FOLDER . '/gwolle-gb.php',
53
  esc_html__('Entries', 'gwolle-gb'), /* translators: Menu entry */
54
- esc_html__('Entries', 'gwolle-gb') . "<span class='update-plugins count-" . $count_unchecked . "'><span class='theme-count'>" . $count_unchecked . "</span></span>",
55
  'moderate_comments',
56
  GWOLLE_GB_FOLDER . '/entries.php',
57
  'gwolle_gb_page_entries'
40
  // Admin page: admin/welcome.php
41
  add_menu_page(
42
  esc_html__('Guestbook', 'gwolle-gb'), /* translators: Menu entry */
43
+ esc_html__('Guestbook', 'gwolle-gb') . "<span class='awaiting-mod count-" . $count_unchecked . "'><span>" . $count_unchecked . "</span></span>",
44
  'moderate_comments',
45
  GWOLLE_GB_FOLDER . '/gwolle-gb.php',
46
  'gwolle_gb_welcome',
51
  add_submenu_page(
52
  GWOLLE_GB_FOLDER . '/gwolle-gb.php',
53
  esc_html__('Entries', 'gwolle-gb'), /* translators: Menu entry */
54
+ esc_html__('Entries', 'gwolle-gb') . "<span class='awaiting-mod count-" . $count_unchecked . "'><span>" . $count_unchecked . "</span></span>",
55
  'moderate_comments',
56
  GWOLLE_GB_FOLDER . '/entries.php',
57
  'gwolle_gb_page_entries'
gwolle-gb.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Gwolle Guestbook
4
  Plugin URI: http://zenoweb.nl
5
  Description: Gwolle Guestbook is not just another guestbook for WordPress. The goal is to provide an easy and slim way to integrate a guestbook into your WordPress powered site. Don't use your 'comment' section the wrong way - install Gwolle Guestbook and have a real guestbook.
6
- Version: 2.3.0
7
  Author: Marcel Pol
8
  Author URI: http://zenoweb.nl
9
  License: GPLv2 or later
@@ -32,7 +32,7 @@ Domain Path: /lang/
32
 
33
 
34
  // Plugin Version
35
- define('GWOLLE_GB_VER', '2.3.0');
36
 
37
 
38
  /*
3
  Plugin Name: Gwolle Guestbook
4
  Plugin URI: http://zenoweb.nl
5
  Description: Gwolle Guestbook is not just another guestbook for WordPress. The goal is to provide an easy and slim way to integrate a guestbook into your WordPress powered site. Don't use your 'comment' section the wrong way - install Gwolle Guestbook and have a real guestbook.
6
+ Version: 2.3.1
7
  Author: Marcel Pol
8
  Author URI: http://zenoweb.nl
9
  License: GPLv2 or later
32
 
33
 
34
  // Plugin Version
35
+ define('GWOLLE_GB_VER', '2.3.1');
36
 
37
 
38
  /*
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Gwolle, mpol
3
  Tags: guestbook, guest book, livre d'or, Gästebuch, libro de visitas
4
  Requires at least: 3.7
5
  Tested up to: 4.8
6
- Stable tag: 2.3.0
7
  License: GPLv2 or later
8
 
9
  Gwolle Guestbook is the WordPress guestbook you've just been looking for. Beautiful and easy.
@@ -369,6 +369,10 @@ But if you don't use standard comments, you can just as easily use the comment s
369
 
370
  == Changelog ==
371
 
 
 
 
 
372
  = 2.3.0 =
373
  * 2017-08-28
374
  * Add Stop Forum Spam service for anti-spam.
3
  Tags: guestbook, guest book, livre d'or, Gästebuch, libro de visitas
4
  Requires at least: 3.7
5
  Tested up to: 4.8
6
+ Stable tag: 2.3.1
7
  License: GPLv2 or later
8
 
9
  Gwolle Guestbook is the WordPress guestbook you've just been looking for. Beautiful and easy.
369
 
370
  == Changelog ==
371
 
372
+ = 2.3.1 =
373
+ * 2017-08-29
374
+ * Use correct class for menu-counters.
375
+
376
  = 2.3.0 =
377
  * 2017-08-28
378
  * Add Stop Forum Spam service for anti-spam.