| 1 |
<?php |
| 2 |
/** |
| 3 |
* WP_Theme_JSON_Gutenberg class |
| 4 |
* |
| 5 |
* @package gutenberg |
| 6 |
*/ |
| 7 |
|
| 8 |
/** |
| 9 |
* Class that encapsulates the processing of structures that adhere to the theme.json spec. |
| 10 |
* |
| 11 |
* This class is for internal core usage and is not supposed to be used by extenders (plugins and/or themes). |
| 12 |
* This is a low-level API that may need to do breaking changes. Please, |
| 13 |
* use get_global_settings, get_global_styles, and get_global_stylesheet instead. |
| 14 |
* |
| 15 |
* @access private |
| 16 |
*/ |
| 17 |
class WP_Theme_JSON_Gutenberg extends WP_Theme_JSON_6_2 { |
| 18 |
/** |
| 19 |
* Holds block metadata extracted from block.json |
| 20 |
* to be shared among all instances so we don't |
| 21 |
* process it twice. |
| 22 |
* |
| 23 |
* It is necessary to redefine $blocks_metadata here so that it |
| 24 |
* doesn't get inherited from an earlier instantiation of the |
| 25 |
* parent class. |
| 26 |
* |
| 27 |
* @since 5.8.0 |
| 28 |
* @var array |
| 29 |
*/ |
| 30 |
protected static $blocks_metadata = null; |
| 31 |
} |
| 32 |
|