Make WordPress Core

Changeset 56275


Ignore:
Timestamp:
07/21/2023 09:41:54 AM (2 years 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.
Reviewed by spacedmonkey.
Merges [56268] to the 6.3 branch.
Fixes #58846.

Location:
branches/6.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.3

    • Property svn:mergeinfo changed
      /trunk (added)merged: 56268
  • branches/6.3/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisions-controller.php

    r56082 r56275  
    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.