Version Description
- Adds check for exif extension availability.
- Rolls back check for user's default thumbnail.
Download this release
Release Info
Developer | hcabrera |
Plugin | WordPress Popular Posts |
Version | 3.1.1 |
Comparing to | |
See all releases |
Code changes from version 3.1.0 to 3.1.1
- readme.txt +5 -1
- views/admin.php +2 -14
- wordpress-popular-posts.php +10 -4
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.0
|
7 |
-
Stable tag: 3.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -152,6 +152,10 @@ For the time being, the [Support Forum](http://wordpress.org/support/plugin/word
|
|
152 |
4. WordPress Popular Posts Stats panel.
|
153 |
|
154 |
== Changelog ==
|
|
|
|
|
|
|
|
|
155 |
= 3.1.0 =
|
156 |
* Fixes invalid HTML title/alt attributes caused by encoding issues.
|
157 |
* Fixes issue with jQuery not loading properly under certain circumstances.
|
4 |
Tags: popular, posts, widget, popularity, top
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 3.1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
152 |
4. WordPress Popular Posts Stats panel.
|
153 |
|
154 |
== Changelog ==
|
155 |
+
= 3.1.1 =
|
156 |
+
* Adds check for exif extension availability.
|
157 |
+
* Rolls back check for user's default thumbnail.
|
158 |
+
|
159 |
= 3.1.0 =
|
160 |
* Fixes invalid HTML title/alt attributes caused by encoding issues.
|
161 |
* Fixes issue with jQuery not loading properly under certain circumstances.
|
views/admin.php
CHANGED
@@ -721,20 +721,8 @@ if (empty($wpp_rand)) {
|
|
721 |
<h3><?php echo sprintf( __('About WordPress Popular Posts %s', $this->plugin_slug), $this->version); ?></h3>
|
722 |
<p><?php _e( 'This version includes the following changes', $this->plugin_slug ); ?>:</p>
|
723 |
<ul>
|
724 |
-
<li>
|
725 |
-
<li>
|
726 |
-
<li>Fixes issue with custom excerpts not showing up.</li>
|
727 |
-
<li>Fixes undefined notices and removes an unused variable from widget_update().</li>
|
728 |
-
<li>Fixes wrong variable reference in __image_resize().</li>
|
729 |
-
<li>Adds charset to mb_substr when truncating excerpt.</li>
|
730 |
-
<li>Sets default logging level to 1 (Everyone).</li>
|
731 |
-
<li>Renders the category link with cat-id-[ID] CSS class.</li>
|
732 |
-
<li>Replaces getimagesize() with exif_imagetype().</li>
|
733 |
-
<li>Adds notice to move/copy wpp.css stylesheet into theme's directory to keep custom CSS styles across updates.</li>
|
734 |
-
<li>Thumbail generation process has been refactored for efficiency.</li>
|
735 |
-
<li>Thumbnails are now stored in a custom folder under Uploads.</li>
|
736 |
-
<li>Drops support on Japanese and French languages since the translations were outdated.</li>
|
737 |
-
<li>Other minor bug fixes and improvements.</li>
|
738 |
</ul>
|
739 |
</div>
|
740 |
|
721 |
<h3><?php echo sprintf( __('About WordPress Popular Posts %s', $this->plugin_slug), $this->version); ?></h3>
|
722 |
<p><?php _e( 'This version includes the following changes', $this->plugin_slug ); ?>:</p>
|
723 |
<ul>
|
724 |
+
<li>Adds check for exif extension availability.</li>
|
725 |
+
<li>Rolls back check for user's default thumbnail.</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
726 |
</ul>
|
727 |
</div>
|
728 |
|
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.1.
|
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.1.
|
65 |
|
66 |
/**
|
67 |
* Plugin identifier.
|
@@ -326,7 +326,7 @@ if ( !class_exists('WordpressPopularPosts') ) {
|
|
326 |
$this->default_thumbnail = $this->plugin_dir . "no_thumb.jpg";
|
327 |
$this->default_user_settings['tools']['thumbnail']['default'] = $this->default_thumbnail;
|
328 |
|
329 |
-
if ( !empty($this->user_settings['tools']['thumbnail']['default'])
|
330 |
$this->default_thumbnail = $this->user_settings['tools']['thumbnail']['default'];
|
331 |
else
|
332 |
$this->user_settings['tools']['thumbnail']['default'] = $this->default_thumbnail;
|
@@ -2449,7 +2449,13 @@ if ( !class_exists('WordpressPopularPosts') ) {
|
|
2449 |
$response = wp_remote_head( $url, array( 'timeout' => 5, 'sslverify' => false ) );
|
2450 |
|
2451 |
if ( !is_wp_error($response) && in_array(wp_remote_retrieve_response_code($response), $accepted_status_codes) ) {
|
2452 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
2453 |
|
2454 |
if ( in_array($image_type, array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG)) ) {
|
2455 |
require_once( ABSPATH . 'wp-admin/includes/file.php' );
|
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.1.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.1.1';
|
65 |
|
66 |
/**
|
67 |
* Plugin identifier.
|
326 |
$this->default_thumbnail = $this->plugin_dir . "no_thumb.jpg";
|
327 |
$this->default_user_settings['tools']['thumbnail']['default'] = $this->default_thumbnail;
|
328 |
|
329 |
+
if ( !empty($this->user_settings['tools']['thumbnail']['default']) )
|
330 |
$this->default_thumbnail = $this->user_settings['tools']['thumbnail']['default'];
|
331 |
else
|
332 |
$this->user_settings['tools']['thumbnail']['default'] = $this->default_thumbnail;
|
2449 |
$response = wp_remote_head( $url, array( 'timeout' => 5, 'sslverify' => false ) );
|
2450 |
|
2451 |
if ( !is_wp_error($response) && in_array(wp_remote_retrieve_response_code($response), $accepted_status_codes) ) {
|
2452 |
+
|
2453 |
+
if ( function_exists('exif_imagetype') ) {
|
2454 |
+
$image_type = exif_imagetype( $url );
|
2455 |
+
} else {
|
2456 |
+
$image_type = getimagesize( $url );
|
2457 |
+
$image_type = ( isset($image_type[2]) ) ? $image_type[2] : NULL;
|
2458 |
+
}
|
2459 |
|
2460 |
if ( in_array($image_type, array(IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG)) ) {
|
2461 |
require_once( ABSPATH . 'wp-admin/includes/file.php' );
|