[wp-trac] [WordPress Trac] #61021: REST API: Add stylesheet_uri and template_uri fields to themes endpoint
WordPress Trac
noreply at wordpress.org
Fri May 31 12:30:12 UTC 2024
#61021: REST API: Add stylesheet_uri and template_uri fields to themes endpoint
--------------------------------------+--------------------------------
Reporter: andrewserong | Owner: TimothyBlynJacobs
Type: enhancement | Status: accepted
Priority: normal | Milestone: 6.6
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+--------------------------------
Changes (by Dharm1025):
* keywords: has-patch needs-testing has-unit-tests => has-patch has-unit-
tests
Comment:
== Test Report
=== Description
Thanks for working on this @andrewserong, the patch works as expected.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/6399
=== Environment
- WordPress: 6.6-alpha-57778-src
- PHP: 8.2.19
- Server: nginx/1.27.0
- Database: mysqli (Server: 8.0.37 / Client: mysqlnd 8.2.19)
- Browser: Chrome 125.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Four Child 1.0
- MU Plugins: None activated
- Plugins:
* Test Reports 1.1.0
=== Actual Results
1. ✅ The `template_uri` and `stylesheet_uri` fields are added to the
response and work as expected for both child and parent themes.
2. ✅ The `stylesheet_directory_uri` filter works for the active theme
3. ✅ The `template_directory_uri` filter works for the active theme
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61021#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list