Prechádzať zdrojové kódy

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

Laurel 3 rokov pred
rodič
commit
7b5de41f4f
1 zmenil súbory, kde vykonal 1 pridanie a 2 odobranie
  1. 1 2
      blockbase/functions.php

+ 1 - 2
blockbase/functions.php

@@ -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',