Version Description
- Reverts security enhancements (not the XSS one though) which caused garbled output for some websites.
- Fixes a PHP Fatal Error affecting some setups.
Release notes
Download this release
Release Info
Developer | hcabrera |
Plugin | WordPress Popular Posts |
Version | 5.3.5 |
Comparing to | |
See all releases |
Code changes from version 5.3.4 to 5.3.5
- readme.txt +8 -1
- src/Block/Block.php +1 -1
- src/Block/Widget/Widget.php +1 -1
- src/Output.php +1 -10
- wordpress-popular-posts.php +2 -2
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: popular, posts, widget, popularity, top
|
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.4
|
8 |
-
Stable tag: 5.3.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -97,6 +97,13 @@ The FAQ section has been moved [here](https://github.com/cabrerahector/wordpress
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
= 5.3.4 =
|
101 |
|
102 |
- Experimental Gutenberg support! This version introduces the first WPP block. It's not enabled by default though, see the Release Notes for more.
|
5 |
Requires at least: 4.9
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.4
|
8 |
+
Stable tag: 5.3.5
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
+
= 5.3.5 =
|
101 |
+
|
102 |
+
- Reverts security enhancements (not the XSS one though) which caused garbled output for some websites.
|
103 |
+
- Fixes a PHP Fatal Error affecting some setups.
|
104 |
+
|
105 |
+
[Release notes](https://cabrerahector.com/wordpress/wordpress-popular-posts-5-3-improved-php-8-support-retina-display-support-and-more/#5.3.5)
|
106 |
+
|
107 |
= 5.3.4 =
|
108 |
|
109 |
- Experimental Gutenberg support! This version introduces the first WPP block. It's not enabled by default though, see the Release Notes for more.
|
src/Block/Block.php
CHANGED
@@ -23,5 +23,5 @@ abstract class Block {
|
|
23 |
/**
|
24 |
*
|
25 |
*/
|
26 |
-
abstract function render(array $
|
27 |
}
|
23 |
/**
|
24 |
*
|
25 |
*/
|
26 |
+
abstract function render(array $attributes);
|
27 |
}
|
src/Block/Widget/Widget.php
CHANGED
@@ -337,7 +337,7 @@ class Widget extends Block
|
|
337 |
* @param array
|
338 |
* @return string
|
339 |
*/
|
340 |
-
public function render($attributes)
|
341 |
{
|
342 |
extract($this->parse_attributes($attributes));
|
343 |
|
337 |
* @param array
|
338 |
* @return string
|
339 |
*/
|
340 |
+
public function render(array $attributes)
|
341 |
{
|
342 |
extract($this->parse_attributes($attributes));
|
343 |
|
src/Output.php
CHANGED
@@ -144,16 +144,7 @@ class Output {
|
|
144 |
public function get_output()
|
145 |
{
|
146 |
$this->output = "\n" . ( WP_DEBUG ? '<!-- WordPress Popular Posts v' . WPP_VERSION . ( $this->admin_options['tools']['cache']['active'] ? ' - cached' : '' ) . ' -->' : '' ) . "\n" . $this->output;
|
147 |
-
|
148 |
-
return \WordPressPopularPosts\htmLawed::hl(
|
149 |
-
Helper::remove_unsafe_html($this->output),
|
150 |
-
[
|
151 |
-
'cdata' => 1,
|
152 |
-
'comment' => 1,
|
153 |
-
'deny_attribute' => 'on*',
|
154 |
-
'schemes' => 'href: mailto, tel, http, https; src: http, https; srcset: http, https'
|
155 |
-
]
|
156 |
-
);
|
157 |
}
|
158 |
|
159 |
/**
|
144 |
public function get_output()
|
145 |
{
|
146 |
$this->output = "\n" . ( WP_DEBUG ? '<!-- WordPress Popular Posts v' . WPP_VERSION . ( $this->admin_options['tools']['cache']['active'] ? ' - cached' : '' ) . ' -->' : '' ) . "\n" . $this->output;
|
147 |
+
return $this->output;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
}
|
149 |
|
150 |
/**
|
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: 5.3.
|
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_VERSION', '5.3.
|
33 |
define('WPP_MIN_PHP_VERSION', '5.4');
|
34 |
define('WPP_MIN_WP_VERSION', '4.9');
|
35 |
|
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: 5.3.5
|
20 |
* Author: Hector Cabrera
|
21 |
* Author URI: https://cabrerahector.com/
|
22 |
* License: GPL-2.0+
|
29 |
die();
|
30 |
}
|
31 |
|
32 |
+
define('WPP_VERSION', '5.3.5');
|
33 |
define('WPP_MIN_PHP_VERSION', '5.4');
|
34 |
define('WPP_MIN_WP_VERSION', '4.9');
|
35 |
|