Top 10 – Popular posts plugin for WordPress - Version 1.7.6

Version Description

  • Fixed: Bug with Daily posts widget created an extra header tag in certain themes
Download this release

Release Info

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

Code changes from version 1.7.5 to 1.7.6

Files changed (2) hide show
  1. readme.txt +3 -0
  2. top-10.php +3 -4
readme.txt CHANGED
@@ -34,6 +34,9 @@ Includes a sidebar widget to display the popular posts. And, all settings can be
34
 
35
  == Changelog ==
36
 
 
 
 
37
  = 1.7.5 =
38
  * Added: Now supports multiple WordPress widgets
39
 
34
 
35
  == Changelog ==
36
 
37
+ = 1.7.6 =
38
+ * Fixed: Bug with Daily posts widget created an extra header tag in certain themes
39
+
40
  = 1.7.5 =
41
  * Added: Now supports multiple WordPress widgets
42
 
top-10.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Top 10
4
- Version: 1.7.5
5
  Plugin URI: http://ajaydsouza.com/wordpress/plugins/top-10/
6
  Description: Count daily and total visits per post and display the most popular posts based on the number of views. Based on the plugin by <a href="http://weblogtoolscollection.com">Mark Ghosh</a>
7
  Author: Ajay D'Souza
@@ -240,9 +240,8 @@ function widget_tptn_pop_daily($args) {
240
  extract($args); // extracts before_widget,before_title,after_title,after_widget
241
 
242
  $tptn_settings = tptn_read_options();
243
- $title = (($tptn_settings['title_daily']) ? $tptn_settings['title_daily'] : __('Daily Popular',TPTN_LOCAL_NAME));
244
- //strip_tags($tptn_settings['title_daily']) : __('Daily Popular',TPTN_LOCAL_NAME));
245
-
246
  $output = $before_widget;
247
  $output .= $before_title.$title.$after_title;
248
 
1
  <?php
2
  /*
3
  Plugin Name: Top 10
4
+ Version: 1.7.6
5
  Plugin URI: http://ajaydsouza.com/wordpress/plugins/top-10/
6
  Description: Count daily and total visits per post and display the most popular posts based on the number of views. Based on the plugin by <a href="http://weblogtoolscollection.com">Mark Ghosh</a>
7
  Author: Ajay D'Souza
240
  extract($args); // extracts before_widget,before_title,after_title,after_widget
241
 
242
  $tptn_settings = tptn_read_options();
243
+ $title = (($tptn_settings['title_daily']) ? strip_tags($tptn_settings['title_daily']) : __('Daily Popular',TPTN_LOCAL_NAME));
244
+
 
245
  $output = $before_widget;
246
  $output .= $before_title.$title.$after_title;
247