Version Description
- Hotfix: don't typehint scalars, breaks plugin on PHP 5.
Download this release
Release Info
Developer | hcabrera |
Plugin | WordPress Popular Posts |
Version | 4.2.2 |
Comparing to | |
See all releases |
Code changes from version 4.2.1 to 4.2.2
includes/class-wordpress-popular-posts-output.php
CHANGED
@@ -287,7 +287,7 @@ class WPP_Output {
|
|
287 |
* @param integer $post_id
|
288 |
* @return string
|
289 |
*/
|
290 |
-
private function get_permalink(
|
291 |
return get_permalink( $post_id );
|
292 |
}
|
293 |
|
@@ -300,7 +300,7 @@ class WPP_Output {
|
|
300 |
* @param integer $post_id
|
301 |
* @return string
|
302 |
*/
|
303 |
-
private function get_title( stdClass $post_object,
|
304 |
|
305 |
if ( $post_object->id != $post_id ) {
|
306 |
$title = get_the_title( $post_id );
|
@@ -542,7 +542,7 @@ class WPP_Output {
|
|
542 |
* @param integer $post_id
|
543 |
* @return string
|
544 |
*/
|
545 |
-
private function get_taxonomies(
|
546 |
|
547 |
$post_tax = '';
|
548 |
|
@@ -607,7 +607,7 @@ class WPP_Output {
|
|
607 |
* @param integer $post_id
|
608 |
* @return string
|
609 |
*/
|
610 |
-
private function get_author( stdClass $post_object,
|
611 |
|
612 |
$author = ( $this->options['stats_tag']['author'] )
|
613 |
? get_the_author_meta( 'display_name', $post_object->uid != $post_id ? get_post_field( 'post_author', $post_id ) : $post_object->uid )
|
@@ -626,7 +626,7 @@ class WPP_Output {
|
|
626 |
* @param integer $post_id
|
627 |
* @return string
|
628 |
*/
|
629 |
-
private function get_excerpt( stdClass $post_object,
|
630 |
|
631 |
$excerpt = '';
|
632 |
|
@@ -714,7 +714,7 @@ class WPP_Output {
|
|
714 |
* @param integer $post_id
|
715 |
* @return array
|
716 |
*/
|
717 |
-
private function get_metadata( stdClass $post_object,
|
718 |
|
719 |
$stats = array();
|
720 |
|
287 |
* @param integer $post_id
|
288 |
* @return string
|
289 |
*/
|
290 |
+
private function get_permalink( $post_id ) {
|
291 |
return get_permalink( $post_id );
|
292 |
}
|
293 |
|
300 |
* @param integer $post_id
|
301 |
* @return string
|
302 |
*/
|
303 |
+
private function get_title( stdClass $post_object, $post_id ) {
|
304 |
|
305 |
if ( $post_object->id != $post_id ) {
|
306 |
$title = get_the_title( $post_id );
|
542 |
* @param integer $post_id
|
543 |
* @return string
|
544 |
*/
|
545 |
+
private function get_taxonomies( $post_id ) {
|
546 |
|
547 |
$post_tax = '';
|
548 |
|
607 |
* @param integer $post_id
|
608 |
* @return string
|
609 |
*/
|
610 |
+
private function get_author( stdClass $post_object, $post_id ) {
|
611 |
|
612 |
$author = ( $this->options['stats_tag']['author'] )
|
613 |
? get_the_author_meta( 'display_name', $post_object->uid != $post_id ? get_post_field( 'post_author', $post_id ) : $post_object->uid )
|
626 |
* @param integer $post_id
|
627 |
* @return string
|
628 |
*/
|
629 |
+
private function get_excerpt( stdClass $post_object, $post_id ) {
|
630 |
|
631 |
$excerpt = '';
|
632 |
|
714 |
* @param integer $post_id
|
715 |
* @return array
|
716 |
*/
|
717 |
+
private function get_metadata( stdClass $post_object, $post_id ) {
|
718 |
|
719 |
$stats = array();
|
720 |
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: popular, posts, widget, popularity, top
|
|
5 |
Requires at least: 4.7
|
6 |
Tested up to: 5.0
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 4.2.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -88,6 +88,10 @@ The FAQ section has been moved [here](https://github.com/cabrerahector/wordpress
|
|
88 |
4. WordPress Popular Posts Stats panel.
|
89 |
|
90 |
== Changelog ==
|
|
|
|
|
|
|
|
|
91 |
= 4.2.1 =
|
92 |
|
93 |
- Adds [filter to set thumbnail compression quality](https://github.com/cabrerahector/wordpress-popular-posts/wiki/3.-Filters#wpp_thumbnail_compression_quality).
|
5 |
Requires at least: 4.7
|
6 |
Tested up to: 5.0
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 4.2.2
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
88 |
4. WordPress Popular Posts Stats panel.
|
89 |
|
90 |
== Changelog ==
|
91 |
+
= 4.2.2 =
|
92 |
+
|
93 |
+
- Hotfix: don't typehint scalars, breaks plugin on PHP 5.
|
94 |
+
|
95 |
= 4.2.1 =
|
96 |
|
97 |
- Adds [filter to set thumbnail compression quality](https://github.com/cabrerahector/wordpress-popular-posts/wiki/3.-Filters#wpp_thumbnail_compression_quality).
|
wordpress-popular-posts.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* Plugin Name: WordPress Popular Posts
|
17 |
* Plugin URI: https://wordpress.org/plugins/wordpress-popular-posts/
|
18 |
* Description: A highly customizable widget that displays the most popular posts on your blog.
|
19 |
-
* Version: 4.2.
|
20 |
* Author: Hector Cabrera
|
21 |
* Author URI: https://cabrerahector.com/
|
22 |
* License: GPL-2.0+
|
@@ -29,7 +29,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
29 |
die();
|
30 |
}
|
31 |
|
32 |
-
define( 'WPP_VER', '4.2.
|
33 |
|
34 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-wordpress-popular-posts-admin-notices.php';
|
35 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-wordpress-popular-posts-activator.php';
|
16 |
* Plugin Name: WordPress Popular Posts
|
17 |
* Plugin URI: https://wordpress.org/plugins/wordpress-popular-posts/
|
18 |
* Description: A highly customizable widget that displays the most popular posts on your blog.
|
19 |
+
* Version: 4.2.2
|
20 |
* Author: Hector Cabrera
|
21 |
* Author URI: https://cabrerahector.com/
|
22 |
* License: GPL-2.0+
|
29 |
die();
|
30 |
}
|
31 |
|
32 |
+
define( 'WPP_VER', '4.2.2' );
|
33 |
|
34 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-wordpress-popular-posts-admin-notices.php';
|
35 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-wordpress-popular-posts-activator.php';
|