diff --git a/includes/Checker/Checks/Plugin_Repo/Plugin_Readme_Check.php b/includes/Checker/Checks/Plugin_Repo/Plugin_Readme_Check.php index 48cd79adb..339852789 100644 --- a/includes/Checker/Checks/Plugin_Repo/Plugin_Readme_Check.php +++ b/includes/Checker/Checks/Plugin_Repo/Plugin_Readme_Check.php @@ -193,6 +193,22 @@ private function check_headers( Check_Result $result, string $readme_file, Parse 'https://developer.wordpress.org/plugins/wordpress-org/how-your-readme-txt-works/#readme-header-information', 7 ); + } elseif ( version_compare( $parser->{$field_key}, number_format( (float) $latest_wordpress_version + 0.1, 1 ), '>' ) ) { + $this->add_result_error_for_file( + $result, + sprintf( + /* translators: 1: currently used version, 2: 'Tested up to' */ + __( 'Tested up to: %1$s.
The "%2$s" value in your plugin is not valid. This version of WordPress does not exist (yet).', 'plugin-check' ), + $parser->{$field_key}, + 'Tested up to' + ), + 'nonexistent_tested_upto_header', + $readme_file, + 0, + 0, + 'https://developer.wordpress.org/plugins/wordpress-org/how-your-readme-txt-works/#readme-header-information', + 7 + ); } } else { if ( empty( $parser->{$field_key} ) ) {