Changeset 52323 for trunk/src/wp-includes/class-wp-theme-json-resolver.php
- Timestamp:
- 12/05/2021 06:01:00 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json-resolver.php
r52321 r52323 179 179 180 180 /* 181 * We want the presets and settings declared in theme.json182 * to override the ones declared via theme supports.183 * So we take theme supports, transform it to theme.json shape184 * and merge the self::$theme upon that.185 */181 * We want the presets and settings declared in theme.json 182 * to override the ones declared via theme supports. 183 * So we take theme supports, transform it to theme.json shape 184 * and merge the self::$theme upon that. 185 */ 186 186 $theme_support_data = WP_Theme_JSON::get_from_editor_settings( get_default_block_editor_settings() ); 187 187 if ( ! self::theme_has_support() ) { … … 316 316 } 317 317 318 // Very important to verify ifthe flag isGlobalStylesUserThemeJSON is true.319 // If i s not truethe content was not escaped and is not safe.318 // Very important to verify that the flag isGlobalStylesUserThemeJSON is true. 319 // If it's not true then the content was not escaped and is not safe. 320 320 if ( 321 321 is_array( $decoded_data ) && … … 333 333 334 334 /** 335 * Returns the data merged from multiple origins. 336 * 335 337 * There are three sources of data (origins) for a site: 336 338 * default, theme, and custom. The custom's has higher priority
Note: See TracChangeset
for help on using the changeset viewer.