From 6359c7a200c4397ba664fd9caf4d9c174f16726d Mon Sep 17 00:00:00 2001 From: Ajay DSouza Date: Wed, 28 Dec 2022 15:52:23 +0000 Subject: [PATCH] Security fix --- README.md | 2 +- includes/blocks/register-blocks.php | 2 +- popular-authors.php | 6 +++--- readme.txt | 12 ++++++++---- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index b7508d6..16a3aa1 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ __Requires:__ WordPress 5.6 and Top 10 v3.0.0 -__Tested up to:__ 5.9 +__Tested up to:__ 6.1 __License:__ [GPL-2.0+](http://www.gnu.org/licenses/gpl-2.0.html) diff --git a/includes/blocks/register-blocks.php b/includes/blocks/register-blocks.php index 8848e5e..69da62f 100644 --- a/includes/blocks/register-blocks.php +++ b/includes/blocks/register-blocks.php @@ -41,7 +41,7 @@ function wzpa_register_blocks() { function render_wzpa_block( $attributes ) { // Map block attributes to PHP attributes. - $attributes['extra_class'] = $attributes['className']; + $attributes['extra_class'] = esc_attr( $attributes['className'] ); $attributes['optioncount'] = $attributes['showOptionCount']; $attributes['show_fullname'] = $attributes['showFullName']; $attributes['show_avatar'] = $attributes['showAvatar']; diff --git a/popular-authors.php b/popular-authors.php index 266d148..3104126 100644 --- a/popular-authors.php +++ b/popular-authors.php @@ -8,13 +8,13 @@ * @author Ajay D'Souza * @license GPL-2.0+ * @link https://webberzone.com - * @copyright 2020-2022 WebberZone + * @copyright 2020-2023 WebberZone * * @wordpress-plugin * Plugin Name: Popular Authors * Plugin URI: https://webberzone.com/downlods/popular-authors/ * Description: Display a list of the popular authors. A Top 10 WordPress plugin addon. - * Version: 1.1.0 + * Version: 1.1.1 * Author: WebberZone * Author URI: https://webberzone.com * License: GPL-2.0+ @@ -36,7 +36,7 @@ * @var string Plugin folder path */ if ( ! defined( 'POP_AUTHOR_VERSION' ) ) { - define( 'POP_AUTHOR_VERSION', '1.1.0' ); + define( 'POP_AUTHOR_VERSION', '1.1.1' ); } /** diff --git a/readme.txt b/readme.txt index 8b6005b..14c3575 100644 --- a/readme.txt +++ b/readme.txt @@ -2,10 +2,10 @@ Tags: popular, popular authors, authors, top authors, views, top 10 Contributors: webberzone, Ajay Donate link: https://ajaydsouza.com/donate/ -Stable tag: 1.1.0 +Stable tag: 1.1.1 Requires at least: 5.6 Requires PHP: 7.1 -Tested up to: 5.9 +Tested up to: 6.1 License: GPLv2 or later Display a list of the popular authors. A Top 10 WordPress plugin addon. @@ -78,6 +78,10 @@ Use `[wzpa_popular_authors]` to display the popular authors. Check [this knowled == Changelog == += 1.1.1 = + +* Security fix in block + = 1.1.0 = Release post: [https://webberzone.com/blog/popular-authors-1-1-0](https://webberzone.com/blog/popular-authors-1-1-0) @@ -104,5 +108,5 @@ For previous changelog entries please visit [Github Releases page](https://githu == Upgrade Notice == -= 1.1.0 = -Major update. Gutenberg block, configurable settings; Check the release post on WebberZone.com += 1.1.1 = +Security fic