Changeset 58265 for trunk/src/wp-includes/class-wp-theme-json-resolver.php
- Timestamp:
- 05/31/2024 05:59:14 AM (2 years ago)
- File:
-
- 1 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 = apply_filters( 'wp_theme_json_data_theme', new WP_Theme_JSON_Data( $theme_json_data, 'theme' ) );257 static::$theme = $theme_json->get_theme_json();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 */
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)