Top 10 – Popular posts plugin for WordPress - Version 2.4.1

Version Description

  • Bug fixes:
    • Fixes fatal error caused on installs which have versions below PHP5.6
Download this release

Release Info

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

Code changes from version 2.4.0 to 2.4.1

Files changed (3) hide show
  1. admin/admin.php +1 -1
  2. readme.txt +4 -0
  3. top-10.php +1 -1
admin/admin.php CHANGED
@@ -104,7 +104,7 @@ function tptn_options() {
104
  $post_types = array_intersect( $wp_post_types, $post_types_arr );
105
  $tptn_settings['post_types'] = http_build_query( $post_types, '', '&' );
106
 
107
- $tptn_settings['exclude_post_ids'] = empty( sanitize_text_field( $_POST['exclude_post_ids'] ) ) ? '' : implode( ',', array_map( 'absint', explode( ',', sanitize_text_field( wp_unslash( $_POST['exclude_post_ids'] ) ) ) ) );
108
 
109
  /**** Exclude categories ****/
110
  $exclude_categories_slugs = array_map( 'trim', explode( ',', sanitize_text_field( $_POST['exclude_cat_slugs'] ) ) );
104
  $post_types = array_intersect( $wp_post_types, $post_types_arr );
105
  $tptn_settings['post_types'] = http_build_query( $post_types, '', '&' );
106
 
107
+ $tptn_settings['exclude_post_ids'] = empty( $_POST['exclude_post_ids'] ) ? '' : implode( ',', array_map( 'absint', explode( ',', sanitize_text_field( wp_unslash( $_POST['exclude_post_ids'] ) ) ) ) );
108
 
109
  /**** Exclude categories ****/
110
  $exclude_categories_slugs = array_map( 'trim', explode( ',', sanitize_text_field( $_POST['exclude_cat_slugs'] ) ) );
readme.txt CHANGED
@@ -165,6 +165,10 @@ add_filter( 'manage_edit-projects_sortable_columns', 'tptn_column_register_sorta
165
 
166
  == Changelog ==
167
 
 
 
 
 
168
  = 2.4.0 =
169
 
170
  * Features:
165
 
166
  == Changelog ==
167
 
168
+ = 2.4.1 =
169
+ * Bug fixes:
170
+ * Fixes fatal error caused on installs which have versions below PHP5.6
171
+
172
  = 2.4.0 =
173
 
174
  * Features:
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.4.0
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.4.1
18
  * Author: Ajay D'Souza
19
  * Author URI: https://webberzone.com
20
  * License: GPL-2.0+