Make WordPress Core

Changeset 52751


Ignore:
Timestamp:
02/17/2022 01:54:28 PM (3 years ago)
Author:
jorgefilipecosta
Message:

Global Styles: Fix PHP warning in WP_REST_Global_Styles_Controller if no styles exist.

There is a PHP warning in WP_REST_Global_Styles_Controller because we are assuming that every theme.json has styles property, which is not always the case.

Props ntsekouras.
Merges [52750] to the 5.9 branch.
Fixes #54900.

Location:
branches/5.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.