Skip to content

Commit

Permalink
Update the private vars and methods to be protected so class entities…
Browse files Browse the repository at this point in the history
… that inherit from the base can use them.
  • Loading branch information
ramonjd committed Jul 19, 2023
1 parent 643b7b8 commit 4224ec9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ class Gutenberg_REST_Global_Styles_Revisions_Controller_6_3 extends WP_REST_Cont
* @since 6.3.0
* @var string
*/
private $parent_post_type;
protected $parent_post_type;

/**
* The base of the parent controller's route.
*
* @since 6.3.0
* @var string
*/
private $parent_base;
protected $parent_base;

/**
* Constructor.
Expand Down Expand Up @@ -102,7 +102,7 @@ public function get_collection_params() {
* @param string $raw_json Encoded JSON from global styles custom post content.
* @return Array|WP_Error
*/
private function get_decoded_global_styles_json( $raw_json ) {
protected function get_decoded_global_styles_json( $raw_json ) {
$decoded_json = json_decode( $raw_json, true );

if ( is_array( $decoded_json ) && isset( $decoded_json['isGlobalStylesUserThemeJSON'] ) && true === $decoded_json['isGlobalStylesUserThemeJSON'] ) {
Expand Down

0 comments on commit 4224ec9

Please sign in to comment.