-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Create Block: Allow external templates to customize more fields #68193
base: trunk
Are you sure you want to change the base?
Conversation
Size Change: -37 B (0%) Total Size: 1.84 MB
ℹ️ View Unchanged
|
Flaky tests detected in 84e38d5. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12433424451
|
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
A potential follow-up is to include prompts for all newly introduced fields. The alternative could be to wait until the work from @eduwass is finished and leave that decision to template authors: |
16a85b1
to
84e38d5
Compare
What?
Allow external templates to customize additional plugin header and readme fields: "Requires at least", "Requires PHP", and "Tested up to".
Why?
These fields were hardcoded and keeping them up to date for every single template is rather difficult. This way we will be able to improve the process of updating these values as the number of templates increased over time.
How?
Introduced three new variables to use with external templates:
requiresAtLeast
(default:'6.7'
) – the lowest WordPress version that the plugin will work on.requiresPHP
(default:'7.4'
) – the minimum required PHP version for use with this plugin.testedUpTo
(default:'6.7'
) – the highest WordPress version that the plugin has been tested against.PHP 7.4 is the minimum required version for WordPress as noted in WordPress requirements.
WordPress 6.7 is the current major version.
Testing Instructions
Testing Instructions for Keyboard
Run the scaffolding and ensure that default versions are set: