Skip to content

Commit

Permalink
fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Feb 9, 2022
1 parent 73c0d96 commit 9cca636
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/compat/wordpress-5.9/class-wp-theme-json-5-9.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* WP_Theme_JSON_Gutenberg class
* WP_Theme_JSON_5_9 class
*
* @package gutenberg
*/
Expand All @@ -21,7 +21,7 @@ class WP_Theme_JSON_5_9 {
*
* @var array
*/
private $theme_json = null;
protected $theme_json = null;

/**
* Holds block metadata extracted from block.json
Expand Down Expand Up @@ -426,7 +426,7 @@ private static function sanitize( $input, $valid_block_names, $valid_element_nam
return $output;
}

$output = array_intersect_key( $input, array_flip( self::VALID_TOP_LEVEL_KEYS ) );
$output = array_intersect_key( $input, array_flip( static::VALID_TOP_LEVEL_KEYS ) );

// Some styles are only meant to be available at the top-level (e.g.: blockGap),
// hence, the schema for blocks & elements should not have them.
Expand Down

0 comments on commit 9cca636

Please sign in to comment.