Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update "requires at least" value to 5.5 #29646

Open
wants to merge 1 commit into
base: trunk
from
Open

update "requires at least" value to 5.5 #29646

wants to merge 1 commit into from

Conversation

@bph
Copy link
Contributor

@bph bph commented Mar 8, 2021

of plugin file.

Description

For plugin, the minimum requirement is 5.5 - it's already updated in the readme.txt but not in the plugin header of gutenberg.php

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • I've tested my changes with keyboard and screen readers.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR.
of plugin file.
@bph bph changed the title update requires at least line update "requires at least" value to 5.5 Mar 8, 2021
Copy link
Contributor

@ntsekouras ntsekouras left a comment

It's 5.6 now :) - #29701

@gziolo
Copy link
Member

@gziolo gziolo commented Mar 10, 2021

I think it should be 5.6 now after @youknowriad merged #29701 😄

@@ -3,7 +3,7 @@
* Plugin Name: Gutenberg
* Plugin URI: https://github.com/WordPress/gutenberg
* Description: Printing since 1440. This is the development plugin for the new block editor in core.
* Requires at least: 5.3
* Requires at least: 5.5

This comment has been minimized.

@youknowriad

youknowriad Mar 10, 2021
Contributor

Do you think we can remove this entirely from here? I mean we already have this value defined in readme.txt isn't that enough?

This comment has been minimized.

@swissspidy

swissspidy Mar 10, 2021
Member

I think we should keep them. See https://core.trac.wordpress.org/ticket/46938

This comment has been minimized.

@swissspidy

swissspidy Mar 10, 2021
Member

Could add Tested up to here too, fwiw

This comment has been minimized.

@gziolo

gziolo Mar 10, 2021
Member

See the last comment from @SergeyBiryukov:

If the headers are defined in both readme.txt and the main plugin file, precedence is given to the plugin file.

This comment has been minimized.

@SergeyBiryukov

SergeyBiryukov Mar 10, 2021
Member

Do you think we can remove this entirely from here? I mean we already have this value defined in readme.txt isn't that enough?

Just noting that WordPress 5.8 aims to remove parsing readme.txt files from validate_plugin_requirements(), see https://core.trac.wordpress.org/ticket/48520. Per discussion with Otto, apparently that file should only have been used for the Plugin Directory and not for core, which should retrieve the data it needs from the main plugin file instead.

So I would suggest removing the Requires at least and Requires PHP headers from the readme.txt file, and keeping them only in the main plugin file. The Plugin Directory supports that too, see https://meta.trac.wordpress.org/ticket/4514.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants