[wp-trac] [WordPress Trac] #49037: Expose all theme supports in /themes endpoint
WordPress Trac
noreply at wordpress.org
Tue Feb 11 01:01:41 UTC 2020
#49037: Expose all theme supports in /themes endpoint
--------------------------------------+-----------------------
Reporter: adamboro | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.4
Component: REST API | Version: 5.0
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+-----------------------
Comment (by TimothyBlynJacobs):
When running the entire test suite, @kadamwhite noticed that the
`test_theme_supports_custom_header` test failed. This is because earlier
tests that call `add_theme_support( 'custom-header' )` have a side effect
of defining the `HEADER_IMAGE` constant to an empty string which overrides
our custom image. The only way we can really fix this is by adjusting our
test to just use an empty string. Constants 😢
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49037#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list