[wp-trac] [WordPress Trac] #48515: [Theme compatibility] Changes to WP_Theme to add correct header data
WordPress Trac
noreply at wordpress.org
Wed Nov 6 17:22:55 UTC 2019
#48515: [Theme compatibility] Changes to WP_Theme to add correct header data
----------------------------+------------------------------------------
Reporter: afragen | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Site Health | Version:
Severity: normal | Keywords: has-patch dev-feedback early
Focuses: administration |
----------------------------+------------------------------------------
There are a couple of changes required for testing theme WP/PHP
compatibility. This is a prerequisite to all other patches testing theme
WP/PHP compatibility.
This started with #44592. This ticket incorporates #44592.
Fundamentally, this ticket adds the `Requires` and `RequiresPHP` headers
to themes.
It then correctly sets these data with a new function
`get_theme_headers()`. The `get_theme_headers()` function obtains the
headers from the `style.css` and `readme.txt` files and combines them
giving precedence to data in the `readme.txt` file. Then it obtains the
current `Requires` and `RequiresPHP` data from the Theme API and inserts
these data with highest precedence.
Related: #48491, #48507, and others to follow.
Please apply the patch on this ticket in order to test related patches.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48515>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list