Skip to content

Commit

Permalink
Tagged v2.9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaydsouza committed Aug 25, 2020
1 parent 193dd64 commit d056cf4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
10 changes: 5 additions & 5 deletions includes/admin/import-export.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function tptn_exim_page() {
<?php submit_button( esc_html__( 'Export Settings', 'top-10' ), 'primary', 'tptn_export_settings', false ); ?>
</p>

<?php wp_nonce_field( 'tptn_export_setting_nonce', 'tptn_export_setting_nonce' ); ?>
<?php wp_nonce_field( 'tptn_export_settings_nonce', 'tptn_export_settings_nonce' ); ?>
</form>

<form method="post" enctype="multipart/form-data">
Expand Down Expand Up @@ -152,7 +152,7 @@ function tptn_export_tables() {
return;
}

if ( isset( $_POST['tptn_export_nonce'] ) && ! wp_verify_nonce( sanitize_key( $_POST['tptn_export_nonce'] ), 'tptn_export_nonce' ) ) {
if ( ! wp_verify_nonce( sanitize_key( $_POST['tptn_export_nonce'] ), 'tptn_export_nonce' ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated
return;
}

Expand Down Expand Up @@ -235,7 +235,7 @@ function tptn_import_tables() {
return;
}

if ( isset( $_POST['tptn_import_nonce'] ) && ! wp_verify_nonce( sanitize_key( $_POST['tptn_import_nonce'] ), 'tptn_import_nonce' ) ) {
if ( ! wp_verify_nonce( sanitize_key( $_POST['tptn_import_nonce'] ), 'tptn_import_nonce' ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated
return;
}

Expand Down Expand Up @@ -319,7 +319,7 @@ function tptn_process_settings_export() {
return;
}

if ( isset( $_POST['tptn_export_settings_nonce'] ) && ! wp_verify_nonce( sanitize_key( $_POST['tptn_export_settings_nonce'] ), 'tptn_export_settings_nonce' ) ) {
if ( ! wp_verify_nonce( sanitize_key( $_POST['tptn_export_settings_nonce'] ), 'tptn_export_settings_nonce' ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated
return;
}

Expand Down Expand Up @@ -352,7 +352,7 @@ function tptn_process_settings_import() {
return;
}

if ( isset( $_POST['tptn_import_settings_nonce'] ) && ! wp_verify_nonce( sanitize_key( $_POST['tptn_import_settings_nonce'] ), 'tptn_import_settings_nonce' ) ) {
if ( ! wp_verify_nonce( sanitize_key( $_POST['tptn_import_settings_nonce'] ), 'tptn_import_settings_nonce' ) ) { // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated
return;
}

Expand Down
15 changes: 11 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Tags: popular posts, top 10, counter, top posts, daily popular, page views, statistics, tracker
Contributors: webberzone, Ajay
Donate link: https://ajaydsouza.com/donate/
Stable tag: 2.9.4
Stable tag: 2.9.5
Requires at least: 4.9
Tested up to: 5.4
Tested up to: 5.5
Requires PHP: 5.6
License: GPLv2 or later

Expand Down Expand Up @@ -161,6 +161,13 @@ add_filter( 'manage_edit-projects_sortable_columns', 'tptn_column_register_sorta

== Changelog ==

= 2.9.5 =

Release post: [https://webberzone.com/blog/top-10-v2-9-0/](https://webberzone.com/blog/top-10-v2-9-0/)

* Bug fixes:
* Security fix: Nonces were not always checked in import module

= 2.9.4 =

Release post: [https://webberzone.com/blog/top-10-v2-9-0/](https://webberzone.com/blog/top-10-v2-9-0/)
Expand Down Expand Up @@ -230,6 +237,6 @@ For previous changelog entries, please refer to the separate changelog.txt file

== Upgrade Notice ==

= 2.9.4 =
Bug fixes and new features; Check the Changelog for more details or the release posts on https://webberzone.com
= 2.9.5 =
Security fix; Check the Changelog for more details or the release posts on https://webberzone.com

2 changes: 1 addition & 1 deletion top-10.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Plugin Name: Top 10
* Plugin URI: https://webberzone.com/plugins/top-10/
* Description: Count daily and total visits per post and display the most popular posts based on the number of views
* Version: 2.9.4
* Version: 2.9.5
* Author: Ajay D'Souza
* Author URI: https://webberzone.com
* License: GPL-2.0+
Expand Down

0 comments on commit d056cf4

Please sign in to comment.