Top 10 – Popular posts plugin for WordPress - Version 2.9.5

Version Description

Release post: https://webberzone.com/blog/top-10-v2-9-0/

  • Bug fixes:
    • Security fix: Nonces were not always checked in import module
Download this release

Release Info

Developer Ajay
Plugin Icon 128x128 Top 10 – Popular posts plugin for WordPress
Version 2.9.5
Comparing to
See all releases

Code changes from version 2.9.4 to 2.9.5

Files changed (3) hide show
  1. includes/admin/import-export.php +5 -5
  2. readme.txt +11 -4
  3. top-10.php +1 -1
includes/admin/import-export.php CHANGED
@@ -56,7 +56,7 @@ function tptn_exim_page() {
56
  <?php submit_button( esc_html__( 'Export Settings', 'top-10' ), 'primary', 'tptn_export_settings', false ); ?>
57
  </p>
58
 
59
- <?php wp_nonce_field( 'tptn_export_setting_nonce', 'tptn_export_setting_nonce' ); ?>
60
  </form>
61
 
62
  <form method="post" enctype="multipart/form-data">
@@ -152,7 +152,7 @@ function tptn_export_tables() {
152
  return;
153
  }
154
 
155
- if ( isset( $_POST['tptn_export_nonce'] ) && ! wp_verify_nonce( sanitize_key( $_POST['tptn_export_nonce'] ), 'tptn_export_nonce' ) ) {
156
  return;
157
  }
158
 
@@ -235,7 +235,7 @@ function tptn_import_tables() {
235
  return;
236
  }
237
 
238
- if ( isset( $_POST['tptn_import_nonce'] ) && ! wp_verify_nonce( sanitize_key( $_POST['tptn_import_nonce'] ), 'tptn_import_nonce' ) ) {
239
  return;
240
  }
241
 
@@ -319,7 +319,7 @@ function tptn_process_settings_export() {
319
  return;
320
  }
321
 
322
- if ( isset( $_POST['tptn_export_settings_nonce'] ) && ! wp_verify_nonce( sanitize_key( $_POST['tptn_export_settings_nonce'] ), 'tptn_export_settings_nonce' ) ) {
323
  return;
324
  }
325
 
@@ -352,7 +352,7 @@ function tptn_process_settings_import() {
352
  return;
353
  }
354
 
355
- if ( isset( $_POST['tptn_import_settings_nonce'] ) && ! wp_verify_nonce( sanitize_key( $_POST['tptn_import_settings_nonce'] ), 'tptn_import_settings_nonce' ) ) {
356
  return;
357
  }
358
 
56
  <?php submit_button( esc_html__( 'Export Settings', 'top-10' ), 'primary', 'tptn_export_settings', false ); ?>
57
  </p>
58
 
59
+ <?php wp_nonce_field( 'tptn_export_settings_nonce', 'tptn_export_settings_nonce' ); ?>
60
  </form>
61
 
62
  <form method="post" enctype="multipart/form-data">
152
  return;
153
  }
154
 
155
+ if ( ! wp_verify_nonce( sanitize_key( $_POST['tptn_export_nonce'] ), 'tptn_export_nonce' ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated
156
  return;
157
  }
158
 
235
  return;
236
  }
237
 
238
+ if ( ! wp_verify_nonce( sanitize_key( $_POST['tptn_import_nonce'] ), 'tptn_import_nonce' ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated
239
  return;
240
  }
241
 
319
  return;
320
  }
321
 
322
+ if ( ! wp_verify_nonce( sanitize_key( $_POST['tptn_export_settings_nonce'] ), 'tptn_export_settings_nonce' ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated
323
  return;
324
  }
325
 
352
  return;
353
  }
354
 
355
+ if ( ! wp_verify_nonce( sanitize_key( $_POST['tptn_import_settings_nonce'] ), 'tptn_import_settings_nonce' ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated
356
  return;
357
  }
358
 
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Tags: popular posts, top 10, counter, top posts, daily popular, page views, statistics, tracker
3
  Contributors: webberzone, Ajay
4
  Donate link: https://ajaydsouza.com/donate/
5
- Stable tag: 2.9.4
6
  Requires at least: 4.9
7
- Tested up to: 5.5
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
 
@@ -161,6 +161,13 @@ add_filter( 'manage_edit-projects_sortable_columns', 'tptn_column_register_sorta
161
 
162
  == Changelog ==
163
 
 
 
 
 
 
 
 
164
  = 2.9.4 =
165
 
166
  Release post: [https://webberzone.com/blog/top-10-v2-9-0/](https://webberzone.com/blog/top-10-v2-9-0/)
@@ -230,6 +237,6 @@ For previous changelog entries, please refer to the separate changelog.txt file
230
 
231
  == Upgrade Notice ==
232
 
233
- = 2.9.4 =
234
- Bug fixes and new features; Check the Changelog for more details or the release posts on https://webberzone.com
235
 
2
  Tags: popular posts, top 10, counter, top posts, daily popular, page views, statistics, tracker
3
  Contributors: webberzone, Ajay
4
  Donate link: https://ajaydsouza.com/donate/
5
+ Stable tag: 2.9.5
6
  Requires at least: 4.9
7
+ Tested up to: 5.7
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
 
161
 
162
  == Changelog ==
163
 
164
+ = 2.9.5 =
165
+
166
+ Release post: [https://webberzone.com/blog/top-10-v2-9-0/](https://webberzone.com/blog/top-10-v2-9-0/)
167
+
168
+ * Bug fixes:
169
+ * Security fix: Nonces were not always checked in import module
170
+
171
  = 2.9.4 =
172
 
173
  Release post: [https://webberzone.com/blog/top-10-v2-9-0/](https://webberzone.com/blog/top-10-v2-9-0/)
237
 
238
  == Upgrade Notice ==
239
 
240
+ = 2.9.5 =
241
+ Security fix; Check the Changelog for more details or the release posts on https://webberzone.com
242
 
top-10.php CHANGED
@@ -14,7 +14,7 @@
14
  * Plugin Name: Top 10
15
  * Plugin URI: https://webberzone.com/plugins/top-10/
16
  * Description: Count daily and total visits per post and display the most popular posts based on the number of views
17
- * Version: 2.9.4
18
  * Author: Ajay D'Souza
19
  * Author URI: https://webberzone.com
20
  * License: GPL-2.0+
14
  * Plugin Name: Top 10
15
  * Plugin URI: https://webberzone.com/plugins/top-10/
16
  * Description: Count daily and total visits per post and display the most popular posts based on the number of views
17
+ * Version: 2.9.5
18
  * Author: Ajay D'Souza
19
  * Author URI: https://webberzone.com
20
  * License: GPL-2.0+