#54900 closed defect (bug) (fixed)
PHP warning in `WP_REST_Global_Styles_Controller` if no `styles` exist in theme.json
Reported by: | ntsekouras | Owned by: | jorgefilipecosta |
---|---|---|---|
Milestone: | 5.9.1 | Priority: | normal |
Severity: | minor | Version: | |
Component: | Editor | Keywords: | has-patch needs-refresh |
Focuses: | Cc: |
Description
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.
Change History (10)
This ticket was mentioned in PR #2224 on WordPress/wordpress-develop by ntsekouras.
3 years ago
#2
- Keywords has-patch added
This ticket was mentioned in Slack in #core by audrasjb. View the logs.
3 years ago
#4
@
3 years ago
- Keywords needs-refresh added
As per today's bug scrub, this ticket needs some changes suggested by @jorgefilipecosta: https://github.com/WordPress/wordpress-develop/pull/2224#pullrequestreview-862640987
Adding needs-refresh
keyword so the PR can be updated by @ntsekouras (or anyone, please feel free to send a new PR) and properly tested.
This ticket was mentioned in Slack in #core by ntsekouras. View the logs.
3 years ago
#7
@
3 years ago
- Owner set to jorgefilipecosta
- Resolution set to fixed
- Status changed from new to closed
In 52750:
#8
@
3 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for backport
Trac ticket: https://core.trac.wordpress.org/ticket/54900
During this GB PR 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.