Changeset 54817 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
- Timestamp:
- 11/11/2022 04:24:47 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
r53760 r54817 565 565 */ 566 566 public function get_theme_item( $request ) { 567 if ( wp_get_theme()->get_stylesheet() !== $request['stylesheet'] ) {567 if ( get_stylesheet() !== $request['stylesheet'] ) { 568 568 // This endpoint only supports the active theme for now. 569 569 return new WP_Error( … … 639 639 */ 640 640 public function get_theme_items( $request ) { 641 if ( wp_get_theme()->get_stylesheet() !== $request['stylesheet'] ) {641 if ( get_stylesheet() !== $request['stylesheet'] ) { 642 642 // This endpoint only supports the active theme for now. 643 643 return new WP_Error(
Note: See TracChangeset
for help on using the changeset viewer.