Changeset 54251
- Timestamp:
- 09/20/2022 01:10:28 PM (23 months ago)
- Location:
- trunk/src
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json-resolver.php
r54246 r54251 138 138 $config = static::read_json_file( __DIR__ . '/theme.json' ); 139 139 $config = static::translate( $config ); 140 141 142 143 144 145 146 147 148 140 149 static::$core = new WP_Theme_JSON( $config, 'default' ); 141 150 … … 173 182 $theme_json_data = static::read_json_file( static::get_file_path_from_theme( 'theme.json' ) ); 174 183 $theme_json_data = static::translate( $theme_json_data, wp_get_theme()->get( 'TextDomain' ) ); 184 185 186 187 188 189 190 191 192 175 193 static::$theme = new WP_Theme_JSON( $theme_json_data ); 176 194 … … 258 276 } 259 277 } 278 279 280 281 282 283 284 285 286 287 260 288 261 289 // Core here means it's the lower level part of the styles chain. … … 383 411 if ( JSON_ERROR_NONE !== $json_decoding_error ) { 384 412 trigger_error( 'Error when decoding a theme.json schema for user data. ' . json_last_error_msg() ); 413 414 415 416 417 418 419 420 421 385 422 return new WP_Theme_JSON( $config, 'custom' ); 386 423 } … … 397 434 } 398 435 } 436 437 438 439 440 441 442 443 444 445 399 446 static::$user = new WP_Theme_JSON( $config, 'custom' ); 400 447 -
trunk/src/wp-settings.php
r54156 r54251 173 173 require ABSPATH . WPINC . '/class-wp-theme.php'; 174 174 require ABSPATH . WPINC . '/class-wp-theme-json-schema.php'; 175 175 176 require ABSPATH . WPINC . '/class-wp-theme-json.php'; 176 177 require ABSPATH . WPINC . '/class-wp-theme-json-resolver.php';
Note: See TracChangeset
for help on using the changeset viewer.