diff --git a/composer.json b/composer.json index d23f2c8a..6c9a5191 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "require": { "php": ">=7.4", "ext-json": "*", - "afragen/wordpress-plugin-readme-parser": "dev-master#67fba498d0b112acf84386b95e4905c539a33f0b", + "afragen/wordpress-plugin-readme-parser": "dev-master#c3758599348148be684b3c4ad1105d09b6230d51", "automattic/vipwpcs": "^3.0.0", "composer/installers": "^2.2", "dealerdirect/phpcodesniffer-composer-installer": "^1.0.0", diff --git a/composer.lock b/composer.lock index 2a01919b..6c80395b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "3aab6089bbe13e7a4c81438da8f72ad6", + "content-hash": "0cc8b18edc9a06529bbdc89fc0354bba", "packages": [ { "name": "afragen/wordpress-plugin-readme-parser", @@ -12,12 +12,12 @@ "source": { "type": "git", "url": "https://github.com/afragen/wordpress-plugin-readme-parser.git", - "reference": "67fba498d0b112acf84386b95e4905c539a33f0b" + "reference": "c3758599348148be684b3c4ad1105d09b6230d51" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/afragen/wordpress-plugin-readme-parser/zipball/67fba498d0b112acf84386b95e4905c539a33f0b", - "reference": "67fba498d0b112acf84386b95e4905c539a33f0b", + "url": "https://api.github.com/repos/afragen/wordpress-plugin-readme-parser/zipball/c3758599348148be684b3c4ad1105d09b6230d51", + "reference": "c3758599348148be684b3c4ad1105d09b6230d51", "shasum": "" }, "require": { diff --git a/includes/Checker/Checks/Plugin_Repo/Plugin_Readme_Check.php b/includes/Checker/Checks/Plugin_Repo/Plugin_Readme_Check.php index ab949b49..98fc974d 100644 --- a/includes/Checker/Checks/Plugin_Repo/Plugin_Readme_Check.php +++ b/includes/Checker/Checks/Plugin_Repo/Plugin_Readme_Check.php @@ -482,6 +482,11 @@ private function check_for_warnings( Check_Result $result, string $readme_file, // This should be ERROR rather than WARNING. So ignoring here to handle separately. unset( $warnings['invalid_plugin_name_header'] ); + // We handle license check in our own way. + unset( $warnings['license_missing'] ); + unset( $warnings['invalid_license'] ); + unset( $warnings['unknown_license'] ); + $warning_keys = array_keys( $warnings ); $latest_wordpress_version = (float) $this->get_wordpress_stable_version();