Changeset 56753 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
- Timestamp:
- 10/02/2023 11:25:35 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
r56586 r56753 359 359 * @return WP_REST_Response Response object. 360 360 */ 361 public function prepare_item_for_response( $post, $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable361 public function prepare_item_for_response( $post, $request ) { 362 362 $raw_config = json_decode( $post->post_content, true ); 363 363 $is_global_styles_user_theme_json = isset( $raw_config['isGlobalStylesUserThemeJSON'] ) && true === $raw_config['isGlobalStylesUserThemeJSON']; … … 642 642 * @return true|WP_Error True if the request has read access for the item, WP_Error object otherwise. 643 643 */ 644 public function get_theme_items_permissions_check( $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable644 public function get_theme_items_permissions_check( $request ) { 645 645 /* 646 646 * Verify if the current user has edit_theme_options capability.
Note: See TracChangeset
for help on using the changeset viewer.