Make WordPress Core

Changeset 56268


Ignore:
Timestamp:
07/19/2023 07:47:48 AM (18 months ago)
Author:
audrasjb
Message:

REST API: Update Global styles revisions private methods to protected.

This changeset updates the private vars and methods in the Global styles revisions rest API controller to be protected, so class entities that inherit
from the base can use them, and to allow iterating on 6.3 features without having to copy over private methods to new classes.

Props ramonopoly.
Fixes #58846.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisions-controller.php

    r56082 r56268  
    2222     * @var string
    2323     */
    24     private $parent_post_type;
     24    protected $parent_post_type;
    2525
    2626    /**
     
    3030     * @var string
    3131     */
    32     private $parent_base;
     32    protected $parent_base;
    3333
    3434    /**
     
    103103     * @return Array|WP_Error
    104104     */
    105     private function get_decoded_global_styles_json( $raw_json ) {
     105    protected function get_decoded_global_styles_json( $raw_json ) {
    106106        $decoded_json = json_decode( $raw_json, true );
    107107
Note: See TracChangeset for help on using the changeset viewer.