mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 04:34:31 +00: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. git-svn-id: https://develop.svn.wordpress.org/trunk@51013 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -34,10 +34,7 @@ require ABSPATH . WPINC . '/class.wp-styles.php';
|
||||
/** WordPress Styles Functions */
|
||||
require ABSPATH . WPINC . '/functions.wp-styles.php';
|
||||
|
||||
/**
|
||||
* get_stylsheet_directory is used by
|
||||
* WP_Theme_JSON_Resolver::theme_has_support()
|
||||
*/
|
||||
// get_stylesheet_directory() is used by WP_Theme_JSON_Resolver::theme_has_support().
|
||||
if ( ! function_exists( 'get_stylesheet_directory' ) ) {
|
||||
require_once ABSPATH . WPINC . '/theme.php';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user