Skip to content

Commit

Permalink
Merge pull request #666 from WordPress/update-mismatched-stable-tag-m…
Browse files Browse the repository at this point in the history
…essage

Update message for mismatched stable tag to make it more clear
  • Loading branch information
davidperezgar authored Sep 26, 2024
2 parents 59b89db + df1b338 commit 3d2f035
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion includes/Checker/Checks/Plugin_Repo/Plugin_Readme_Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,11 @@ private function check_stable_tag( Check_Result $result, string $readme_file, Pa
) {
$this->add_result_error_for_file(
$result,
__( "<strong>The Stable Tag in your readme file does not match the version in your main plugin file.</strong><br>Your Stable Tag is meant to be the stable version of your plugin, not of WordPress. For your plugin to be properly downloaded from WordPress.org, those values need to be the same. If they're out of sync, your users won't get the right version of your code.", 'plugin-check' ),
sprintf(
/* translators: %s: versions comparison */
__( "<strong>Mismatched Stable Tag: %s.</strong><br>The Stable Tag in your readme file does not match the version in your main plugin file. Your Stable Tag is meant to be the stable version of your plugin, not of WordPress. For your plugin to be properly downloaded from WordPress.org, those values need to be the same. If they're out of sync, your users won't get the right version of your code.", 'plugin-check' ),
esc_html( $stable_tag ) . ' != ' . esc_html( $plugin_data['Version'] )
),
'stable_tag_mismatch',
$readme_file,
0,
Expand Down

0 comments on commit 3d2f035

Please sign in to comment.