#5099 closed enhancement (fixed)
Themes API not returning compatibility data
Reported by: | afragen | Owned by: | dd32 |
---|---|---|---|
Milestone: | Priority: | high | |
Component: | API | Keywords: | dev-feedback |
Cc: |
Description
In order for PHP compatibility testing to function with the themes, the Themes API must be able to return the compatibility headers in the readme.txt
file just as the Plugins API does.
https://api.wordpress.org/plugins/info/1.2/?action=plugin_information&request[slug]=wordpress-beta-tester returns data for requires
and requires_php
.
https://api.wordpress.org/themes/info/1.2/?action=theme_information&request[slug]=twentytwenty simply returns false
for requires
and requires_php
. These data are set, along with tested
in the theme's readme.txt
file.
These data are necessary for #49334, testing compatibility of themes to install.
Ping @dd32
Change History (8)
#3
@
5 years ago
The themes uploader is still only parsing the readme.txt files, not looking at the style.css for those two headers.
I don't know if the change has yet been made to core to pull from the style.css yet, but if so, then a similar modification would need to be made to the uploader code:
#5
@
5 years ago
- Owner set to dd32
- Resolution set to fixed
- Status changed from new to closed
In 9588:
#6
@
5 years ago
[9588] should do the job for future uploaded themes.
As a once-off, I've filled the data in for the twentytwenty theme: https://api.wordpress.org/themes/info/1.2/?action=theme_information&request[slug]=twentytwenty
I thought these fields got moved to the style.css file.