[wp-trac] [WordPress Trac] #53797: Add Tested up to in style.css
WordPress Trac
noreply at wordpress.org
Tue Jul 27 15:38:59 UTC 2021
#53797: Add Tested up to in style.css
---------------------------+---------------------
Reporter: kafleg | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.9
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
---------------------------+---------------------
Changes (by desrosj):
* keywords: has-patch commit => has-patch
Comment:
Related: #53276, #52982, #51501, #50503, #48517, #53580,
[https://meta.trac.wordpress.org/ticket/4621 meta-461].
Thanks for this, @kafleg!
I've taken a closer look, and it appears that Twenty Twenty-One is the
only bundled theme that currently has `Tested up to` in `style.css`
headers. This was an intentional decision at the time because WordPress
Core did not yet utilize this header (see comment:5:ticket:48517).
Since then, [47145] added support for required WordPress versions in Core,
but `Tested up to` is [https://core.trac.wordpress.org/browser/trunk/src
/wp-includes/class-wp-theme.php#L28 still not supported by Core within]
`style.css` headers.
I was not able to locate a ticket in Trac to consider adding this support
to `style.css` files, so this could serve as that. But more work would be
required, as Core itself must have a reason to add support for this
header.
An example of this could be adding "This theme has not been marked as
compatible with your version of WordPress." messages to match those shown
when working with plugins.
> Twenty Twenty theme is missing Tested up to in style.css and this is the
required thing.
Can you expand on the "required thing"? Is this now enforced for themes
residing on WordPress.org? If I recall correctly, that was not the case
previously (it was a soft requirement/suggestion).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53797#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list