Changeset 58265
- Timestamp:
- 05/31/2024 05:59:14 AM (13 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json-resolver.php
r58264 r58265 254 254 * @param WP_Theme_JSON_Data $theme_json Class to access and update the underlying data. 255 255 */ 256 $theme_json 257 static::$theme 256 $theme_json = apply_filters( 'wp_theme_json_data_theme', new WP_Theme_JSON_Data( $theme_json_data, 'theme' ) ); 257 static::$theme = $theme_json->get_theme_json(); 258 258 259 259 if ( $wp_theme->parent() ) { … … 385 385 * @param WP_Theme_JSON_Data $theme_json Class to access and update the underlying data. 386 386 */ 387 $theme_json = apply_filters( 'wp_theme_json_data_blocks', new WP_Theme_JSON_Data( $config, 'blocks' ) );387 $theme_json = apply_filters( 'wp_theme_json_data_blocks', new WP_Theme_JSON_Data( $config, 'blocks' ) ); 388 388 static::$blocks = $theme_json->get_theme_json(); 389 389 return static::$blocks; … … 713 713 * @param array $variation Theme.json shaped style variation object. 714 714 * @param string $scope Scope to check e.g. theme, block etc. 715 *716 715 * @return boolean 717 716 */ … … 738 737 * 739 738 * @param string $scope The scope or type of style variation to retrieve e.g. theme, block etc. 740 *741 739 * @return array 742 740 */ -
trunk/src/wp-includes/class-wp-theme-json.php
r58264 r58265 307 307 */ 308 308 const INDIRECT_PROPERTIES_METADATA = array( 309 'gap' => array(309 'gap' => array( 310 310 array( 'spacing', 'blockGap' ), 311 311 ), 312 'column-gap' => array(312 'column-gap' => array( 313 313 array( 'spacing', 'blockGap', 'left' ), 314 314 ), 315 'row-gap' => array(315 'row-gap' => array( 316 316 array( 'spacing', 'blockGap', 'top' ), 317 317 ), 318 'max-width' => array(318 'max-width' => array( 319 319 array( 'layout', 'contentSize' ), 320 320 array( 'layout', 'wideSize' ), … … 1223 1223 * @param string[] $origins A list of origins to include. By default it includes VALID_ORIGINS. 1224 1224 * @param array $options An array of options for now used for internal purposes only (may change without notice). 1225 * The options currently supported are:1226 * - 'scope' that makes sure all style are scoped to a given selector1227 * - `root_selector` which overwrites and forces a given selector to be used on the root node1228 * - `skip_root_layout_styles` which omits root layout styles from the generated stylesheet.1225 * The options currently supported are: 1226 * - 'scope' that makes sure all style are scoped to a given selector 1227 * - `root_selector` which overwrites and forces a given selector to be used on the root node 1228 * - `skip_root_layout_styles` which omits root layout styles from the generated stylesheet. 1229 1229 * @return string The resulting stylesheet. 1230 1230 */
Note: See TracChangeset
for help on using the changeset viewer.