[wp-trac] [WordPress Trac] #54900: PHP warning in `WP_REST_Global_Styles_Controller` if no `styles` exist in theme.json
WordPress Trac
noreply at wordpress.org
Tue Jan 25 11:15:25 UTC 2022
#54900: PHP warning in `WP_REST_Global_Styles_Controller` if no `styles` exist in
theme.json
--------------------------+-----------------------------
Reporter: ntsekouras | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: minor | Keywords:
Focuses: |
--------------------------+-----------------------------
During this [GB PR](https://github.com/WordPress/gutenberg/pull/38124) I
noticed a PHP warning in `WP_REST_Global_Styles_Controller` where we are
assuming that every theme.json has `styles` property, which is not always
the case.
It's fixed in GB now, but we should add this to `5.9` next minor release.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54900>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list