Blockbase: move require social-navigation.php inside a check for WP_Theme_JSON_Resolver_Gutenberg to avoid errors. (#5654)

This commit is contained in:
Laurel 2022-03-11 00:27:22 -08:00 committed by GitHub
parent 07bc404e73
commit 7b5de41f4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,10 +156,9 @@ if ( class_exists( 'WP_Theme_JSON_Resolver_Gutenberg' ) ) {
require get_template_directory() . '/inc/customizer/wp-customize-colors.php';
require get_template_directory() . '/inc/customizer/wp-customize-color-palettes.php';
require get_template_directory() . '/inc/customizer/wp-customize-fonts.php';
require get_template_directory() . '/inc/social-navigation.php';
}
require get_template_directory() . '/inc/social-navigation.php';
// Force menus to reload
add_action(
'customize_controls_enqueue_scripts',