Skip to content

Update error message for plugin_header_invalid_requires_wp code - #827

Merged
davidperezgar merged 3 commits into
trunkfrom
update-requires-wp-header-message
Dec 12, 2024
Merged

Update error message for plugin_header_invalid_requires_wp code #827
davidperezgar merged 3 commits into
trunkfrom
update-requires-wp-header-message

Conversation

@ernilambar

@ernilambar ernilambar commented Dec 11, 2024

Copy link
Copy Markdown
Member

Command: wp plugin check pc-sample --format=csv

Before

FILE: pc-sample.php
code,message
plugin_header_invalid_requires_wp,"The ""Requires at least"" header in the plugin file should only contain a WordPress version such as ""6.5.1"" or ""6.6""."

After

FILE: pc-sample.php
code,message
plugin_header_invalid_requires_wp,"The ""Requires at least"" header in the plugin file should only contain a WordPress version such as ""6.7"" or ""6.6""."

Version here corresponds to the latest WP version and earlier WP version. Earlier those were hardcoded.

@ernilambar ernilambar added [Type] Enhancement A suggestion for improvement of an existing feature [Team] Plugins Issues owned by Plugins Team labels Dec 11, 2024
@ernilambar ernilambar added this to the 1.4.0 milestone Dec 11, 2024
@ernilambar
ernilambar marked this pull request as ready for review December 11, 2024 06:41
@github-actions

github-actions Bot commented Dec 11, 2024

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: ernilambar <rabmalin@git.wordpress.org>
Co-authored-by: davidperezgar <davidperez@git.wordpress.org>
Co-authored-by: swissspidy <swissspidy@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@davidperezgar
davidperezgar merged commit d3fbbf6 into trunk Dec 12, 2024
@davidperezgar
davidperezgar deleted the update-requires-wp-header-message branch December 12, 2024 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Team] Plugins Issues owned by Plugins Team [Type] Enhancement A suggestion for improvement of an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants