Version Description
- Fixes undefined index notice.
- Makes sure legacy tables are deleted on plugin upgrade.
Download this release
Release Info
Developer | hcabrera |
Plugin | WordPress Popular Posts |
Version | 3.3.1 |
Comparing to | |
See all releases |
Code changes from version 3.3.0 to 3.3.1
- readme.txt +5 -17
- views/admin.php +2 -8
- wordpress-popular-posts.php +6 -8
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hcabr
|
|
4 |
Tags: popular, posts, widget, popularity, top
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.3
|
7 |
-
Stable tag: 3.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -70,6 +70,10 @@ The [FAQ section](https://github.com/cabrerahector/wordpress-popular-posts/wiki/
|
|
70 |
4. WordPress Popular Posts Stats panel.
|
71 |
|
72 |
== Changelog ==
|
|
|
|
|
|
|
|
|
73 |
= 3.3.0 =
|
74 |
- Adds the ability to limit the amount of data logged by WPP (see Settings > WordPress Popular Posts > Tools for more).
|
75 |
- Adds Polylang support (thanks, [@Chouby](https://github.com/Chouby)!)
|
@@ -137,22 +141,6 @@ The [FAQ section](https://github.com/cabrerahector/wordpress-popular-posts/wiki/
|
|
137 |
* Adds check for exif extension availability.
|
138 |
* Rolls back check for user's default thumbnail.
|
139 |
|
140 |
-
= 3.1.0 =
|
141 |
-
* Fixes invalid HTML title/alt attributes caused by encoding issues.
|
142 |
-
* Fixes issue with jQuery not loading properly under certain circumstances.
|
143 |
-
* Fixes issue with custom excerpts not showing up.
|
144 |
-
* Fixes undefined notices and removes an unused variable from widget_update().
|
145 |
-
* Fixes wrong variable reference in __image_resize().
|
146 |
-
* Adds charset to mb_substr when truncating excerpt.
|
147 |
-
* Sets default logging level to 1 (Everyone).
|
148 |
-
* Renders the category link with cat-id-[ID] CSS class.
|
149 |
-
* Replaces getimagesize() with exif_imagetype().
|
150 |
-
* Adds notice to move/copy wpp.css stylesheet into theme's directory to keep custom CSS styles across updates.
|
151 |
-
* Thumbail generation process has been refactored for efficiency.
|
152 |
-
* Thumbnails are now stored in a custom folder under Uploads.
|
153 |
-
* Drops support on Japanese and French languages since the translations were outdated.
|
154 |
-
* Other minor bug fixes and improvements.
|
155 |
-
|
156 |
See [full changelog](https://github.com/cabrerahector/wordpress-popular-posts/blob/master/changelog.md).
|
157 |
|
158 |
== Language support ==
|
4 |
Tags: popular, posts, widget, popularity, top
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.3
|
7 |
+
Stable tag: 3.3.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
70 |
4. WordPress Popular Posts Stats panel.
|
71 |
|
72 |
== Changelog ==
|
73 |
+
= 3.3.1 =
|
74 |
+
- Fixes undefined index notice.
|
75 |
+
- Makes sure legacy tables are deleted on plugin upgrade.
|
76 |
+
|
77 |
= 3.3.0 =
|
78 |
- Adds the ability to limit the amount of data logged by WPP (see Settings > WordPress Popular Posts > Tools for more).
|
79 |
- Adds Polylang support (thanks, [@Chouby](https://github.com/Chouby)!)
|
141 |
* Adds check for exif extension availability.
|
142 |
* Rolls back check for user's default thumbnail.
|
143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
See [full changelog](https://github.com/cabrerahector/wordpress-popular-posts/blob/master/changelog.md).
|
145 |
|
146 |
== Language support ==
|
views/admin.php
CHANGED
@@ -798,14 +798,8 @@ if (empty($wpp_rand)) {
|
|
798 |
<p><?php _e( 'This version includes the following changes', $this->plugin_slug ); ?>:</p>
|
799 |
|
800 |
<ul>
|
801 |
-
<li>
|
802 |
-
<li>
|
803 |
-
<li>Removes post data from DB on deletion.</li>
|
804 |
-
<li>Fixes whitespaces from post_type argument (thanks, <a href="https://github.com/Chouby">@getdave</a>!)</li>
|
805 |
-
<li>WPP now handles SSL detection for images.</li>
|
806 |
-
<li>Removes legacy datacache & datacache_backup tables.</li>
|
807 |
-
<li>Adds Settings page advertisement support.</li>
|
808 |
-
<li>FAQ section has been moved over to Github.</li>
|
809 |
</ul>
|
810 |
|
811 |
</div>
|
798 |
<p><?php _e( 'This version includes the following changes', $this->plugin_slug ); ?>:</p>
|
799 |
|
800 |
<ul>
|
801 |
+
<li>Fixes undefined index notice.</li>
|
802 |
+
<li>Makes sure legacy tables are deleted on plugin upgrade.</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
803 |
</ul>
|
804 |
|
805 |
</div>
|
wordpress-popular-posts.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WordPress Popular Posts
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/wordpress-popular-posts
|
5 |
Description: WordPress Popular Posts is a highly customizable widget that displays the most popular posts on your blog
|
6 |
-
Version: 3.3.
|
7 |
Author: Hector Cabrera
|
8 |
Author URI: http://cabrerahector.com
|
9 |
Author Email: hcabrerab@gmail.com
|
@@ -61,7 +61,7 @@ if ( !class_exists('WordpressPopularPosts') ) {
|
|
61 |
* @since 1.3.0
|
62 |
* @var string
|
63 |
*/
|
64 |
-
private $version = '3.3.
|
65 |
|
66 |
/**
|
67 |
* Plugin identifier.
|
@@ -236,7 +236,7 @@ if ( !class_exists('WordpressPopularPosts') ) {
|
|
236 |
),
|
237 |
'log' => array(
|
238 |
'level' => 1,
|
239 |
-
'
|
240 |
'expires_after' => 180
|
241 |
),
|
242 |
'cache' => array(
|
@@ -1001,14 +1001,12 @@ if ( !class_exists('WordpressPopularPosts') ) {
|
|
1001 |
|
1002 |
$result = $wpdb->query( $sql );
|
1003 |
|
1004 |
-
// Deletes old caching tables
|
1005 |
-
if ( $result ) {
|
1006 |
-
$wpdb->query( "DROP TABLE IF EXISTS {$prefix}datacache, {$prefix}datacache_backup;" );
|
1007 |
-
}
|
1008 |
-
|
1009 |
}
|
1010 |
|
1011 |
}
|
|
|
|
|
|
|
1012 |
|
1013 |
// Check storage engine
|
1014 |
$storage_engine_data = $wpdb->get_var("SELECT `ENGINE` FROM `information_schema`.`TABLES` WHERE `TABLE_SCHEMA`='{$wpdb->dbname}' AND `TABLE_NAME`='{$prefix}data';");
|
3 |
Plugin Name: WordPress Popular Posts
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/wordpress-popular-posts
|
5 |
Description: WordPress Popular Posts is a highly customizable widget that displays the most popular posts on your blog
|
6 |
+
Version: 3.3.1
|
7 |
Author: Hector Cabrera
|
8 |
Author URI: http://cabrerahector.com
|
9 |
Author Email: hcabrerab@gmail.com
|
61 |
* @since 1.3.0
|
62 |
* @var string
|
63 |
*/
|
64 |
+
private $version = '3.3.1';
|
65 |
|
66 |
/**
|
67 |
* Plugin identifier.
|
236 |
),
|
237 |
'log' => array(
|
238 |
'level' => 1,
|
239 |
+
'limit' => 0,
|
240 |
'expires_after' => 180
|
241 |
),
|
242 |
'cache' => array(
|
1001 |
|
1002 |
$result = $wpdb->query( $sql );
|
1003 |
|
|
|
|
|
|
|
|
|
|
|
1004 |
}
|
1005 |
|
1006 |
}
|
1007 |
+
|
1008 |
+
// Deletes old caching tables, if found
|
1009 |
+
$wpdb->query( "DROP TABLE IF EXISTS {$prefix}datacache, {$prefix}datacache_backup;" );
|
1010 |
|
1011 |
// Check storage engine
|
1012 |
$storage_engine_data = $wpdb->get_var("SELECT `ENGINE` FROM `information_schema`.`TABLES` WHERE `TABLE_SCHEMA`='{$wpdb->dbname}' AND `TABLE_NAME`='{$prefix}data';");
|