mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
Block Editor: Only load the WP_Theme_JSON_Resolver
class once.
Since the class is now loaded via `wp-includes/script-loader.php`, which is required earlier in `wp-settings.php`, loading it again in `wp-settings.php` is redundant. Follow-up to [50992], [51001]. See #53175. Built from https://develop.svn.wordpress.org/trunk@51013 git-svn-id: http://core.svn.wordpress.org/trunk@50622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d8b8ceb4d3
commit
3c3a18a957
@ -34,10 +34,7 @@ require ABSPATH . WPINC . '/class.wp-styles.php';
|
|||||||
/** WordPress Styles Functions */
|
/** WordPress Styles Functions */
|
||||||
require ABSPATH . WPINC . '/functions.wp-styles.php';
|
require ABSPATH . WPINC . '/functions.wp-styles.php';
|
||||||
|
|
||||||
/**
|
// get_stylesheet_directory() is used by WP_Theme_JSON_Resolver::theme_has_support().
|
||||||
* get_stylsheet_directory is used by
|
|
||||||
* WP_Theme_JSON_Resolver::theme_has_support()
|
|
||||||
*/
|
|
||||||
if ( ! function_exists( 'get_stylesheet_directory' ) ) {
|
if ( ! function_exists( 'get_stylesheet_directory' ) ) {
|
||||||
require_once ABSPATH . WPINC . '/theme.php';
|
require_once ABSPATH . WPINC . '/theme.php';
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.8-alpha-51012';
|
$wp_version = '5.8-alpha-51013';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
@ -170,6 +170,7 @@ require ABSPATH . WPINC . '/query.php';
|
|||||||
require ABSPATH . WPINC . '/class-wp-date-query.php';
|
require ABSPATH . WPINC . '/class-wp-date-query.php';
|
||||||
require ABSPATH . WPINC . '/theme.php';
|
require ABSPATH . WPINC . '/theme.php';
|
||||||
require ABSPATH . WPINC . '/class-wp-theme.php';
|
require ABSPATH . WPINC . '/class-wp-theme.php';
|
||||||
|
require ABSPATH . WPINC . '/class-wp-theme-json.php';
|
||||||
require ABSPATH . WPINC . '/class-wp-block-template.php';
|
require ABSPATH . WPINC . '/class-wp-block-template.php';
|
||||||
require ABSPATH . WPINC . '/block-template-utils.php';
|
require ABSPATH . WPINC . '/block-template-utils.php';
|
||||||
require ABSPATH . WPINC . '/block-template.php';
|
require ABSPATH . WPINC . '/block-template.php';
|
||||||
@ -303,8 +304,6 @@ require ABSPATH . WPINC . '/class-wp-block-list.php';
|
|||||||
require ABSPATH . WPINC . '/class-wp-block-parser.php';
|
require ABSPATH . WPINC . '/class-wp-block-parser.php';
|
||||||
require ABSPATH . WPINC . '/blocks.php';
|
require ABSPATH . WPINC . '/blocks.php';
|
||||||
require ABSPATH . WPINC . '/blocks/index.php';
|
require ABSPATH . WPINC . '/blocks/index.php';
|
||||||
require ABSPATH . WPINC . '/class-wp-theme-json.php';
|
|
||||||
require_once ABSPATH . WPINC . '/class-wp-theme-json-resolver.php';
|
|
||||||
require ABSPATH . WPINC . '/block-editor.php';
|
require ABSPATH . WPINC . '/block-editor.php';
|
||||||
require ABSPATH . WPINC . '/block-patterns.php';
|
require ABSPATH . WPINC . '/block-patterns.php';
|
||||||
require ABSPATH . WPINC . '/class-wp-block-supports.php';
|
require ABSPATH . WPINC . '/class-wp-block-supports.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user