From 9b20dc5f14ff5f00e0f1b7190a821e3b3c52a070 Mon Sep 17 00:00:00 2001 From: davidperezgar Date: Mon, 27 Jan 2025 19:37:50 +0100 Subject: [PATCH 1/3] updated version and changelog --- plugin.php | 4 ++-- readme.txt | 21 ++++++++++++++++++++- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/plugin.php b/plugin.php index 89cca4dc5..44368a4ad 100644 --- a/plugin.php +++ b/plugin.php @@ -5,7 +5,7 @@ * Description: Plugin Check is a WordPress.org tool which provides checks to help plugins meet the directory requirements and follow various best practices. * Requires at least: 6.3 * Requires PHP: 7.4 - * Version: 1.3.1 + * Version: 1.4.0 * Author: WordPress Performance Team and Plugin Review Team * License: GPLv2 or later * License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html @@ -16,7 +16,7 @@ use WordPress\Plugin_Check\Plugin_Main; -define( 'WP_PLUGIN_CHECK_VERSION', '1.3.1' ); +define( 'WP_PLUGIN_CHECK_VERSION', '1.4.0' ); define( 'WP_PLUGIN_CHECK_MINIMUM_PHP', '7.4' ); define( 'WP_PLUGIN_CHECK_MAIN_FILE', __FILE__ ); define( 'WP_PLUGIN_CHECK_PLUGIN_DIR_PATH', plugin_dir_path( WP_PLUGIN_CHECK_MAIN_FILE ) ); diff --git a/readme.txt b/readme.txt index 1cfc7d85a..59a346d81 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: wordpressdotorg Tested up to: 6.7 -Stable tag: 1.3.1 +Stable tag: 1.4.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: plugin best practices, testing, accessibility, performance, security @@ -68,6 +68,25 @@ In any case, passing the checks in this tool likely helps to achieve a smooth pl == Changelog == += 1.4.0 = + +* Enhancement - Allow ISC license in the License check. +* Enhancement - Added --ignore-codes in CLI to introduce a mechanism to ignore specific error codes. +* Enhancement - New utils for fetching necessary version info details. +* Enhancement - Added check for unsupported plugin name in plugin header field. +* Enhancement - Segregate the severity of i18n checks. Make sure that is giving errors in the right context. +* Enhancement - Provide more detailed information about checks when the README does not include a tested version or a list of contributors. +* Enhancement - Added rules from WPCS to prevent issues with content being sent before headers and warn about the use of Call-time pass-by-reference. +* Enhancement - Give more context in the error of check wrong named files. +* Enhancement - Simplified PHPUnit setup. Now it does not depend of running insided a WordPress installation. +* Enhancement - Added new check for restricted contributors. +* Fix - Delete transients in unit tests to avoid false positives. +* Fix - Incorrect Tested up to version comparison will make error for two major versions up. +* Fix - Excluded the use of functions file_get_contents and file_put_contents in the check to prevent false positives. +* Fix - Duplicated error message in the check for wrong named files. +* Fix - Use of Json encode wasn't firing the error message. +* Fix - Change error type of NonEnqueuedImage in ImageFunctions sniff from ERROR to WARNING. + = 1.3.1 = * Enhancement - Add version utilities. From 48ae4bb56892a1c96b08c605e40e6dd202ad5c09 Mon Sep 17 00:00:00 2001 From: davidperezgar Date: Mon, 27 Jan 2025 19:47:41 +0100 Subject: [PATCH 2/3] fix mispelling --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 59a346d81..831daacda 100644 --- a/readme.txt +++ b/readme.txt @@ -78,7 +78,7 @@ In any case, passing the checks in this tool likely helps to achieve a smooth pl * Enhancement - Provide more detailed information about checks when the README does not include a tested version or a list of contributors. * Enhancement - Added rules from WPCS to prevent issues with content being sent before headers and warn about the use of Call-time pass-by-reference. * Enhancement - Give more context in the error of check wrong named files. -* Enhancement - Simplified PHPUnit setup. Now it does not depend of running insided a WordPress installation. +* Enhancement - Simplified PHPUnit setup. Now it does not depend of running inside a WordPress installation. * Enhancement - Added new check for restricted contributors. * Fix - Delete transients in unit tests to avoid false positives. * Fix - Incorrect Tested up to version comparison will make error for two major versions up. From 86523c51fd9655c098f4a0f26adb484313a23d42 Mon Sep 17 00:00:00 2001 From: davidperezgar Date: Tue, 28 Jan 2025 11:48:40 +0100 Subject: [PATCH 3/3] check sanitization --- readme.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.txt b/readme.txt index 831daacda..7c77aaf28 100644 --- a/readme.txt +++ b/readme.txt @@ -71,6 +71,7 @@ In any case, passing the checks in this tool likely helps to achieve a smooth pl = 1.4.0 = * Enhancement - Allow ISC license in the License check. +* Enhancement - Added check for use of settings with sanitization callback. * Enhancement - Added --ignore-codes in CLI to introduce a mechanism to ignore specific error codes. * Enhancement - New utils for fetching necessary version info details. * Enhancement - Added check for unsupported plugin name in plugin header field.