瀏覽代碼

Blank Canvas, IP2, Lodestar: Add support for selective refresh widgets

sixhours 3 年之前
父節點
當前提交
aeb3c1bdcf
共有 3 個文件被更改,包括 2 次插入3 次删除
  1. 0 1
      blank-canvas/functions.php
  2. 1 1
      independent-publisher-2/functions.php
  3. 1 1
      lodestar/functions.php

+ 0 - 1
blank-canvas/functions.php

@@ -87,7 +87,6 @@ add_filter( 'seedlet_colors', 'blank_canvas_colors' );
 function blank_canvas_remove_parent_theme_features() {
 	// Theme Support.
 	remove_theme_support( 'custom-header' );
-	remove_theme_support( 'customize-selective-refresh-widgets' );
 }
 add_action( 'after_setup_theme', 'blank_canvas_remove_parent_theme_features', 11 );
 

+ 1 - 1
independent-publisher-2/functions.php

@@ -34,7 +34,7 @@ if ( ! function_exists( 'independent_publisher_2_setup' ) ) :
 		 */
 		add_theme_support( 'title-tag' );
 
-		add_theme_support( 'customize_selective_refresh_widgets' );
+		add_theme_support( 'customize-selective-refresh-widgets' );
 
 		/*
 		 * Enable support for Post Thumbnails on posts and pages.

+ 1 - 1
lodestar/functions.php

@@ -90,7 +90,7 @@ if ( ! function_exists( 'lodestar_setup' ) ) :
 		);
 
 		// Add support to selectively refresh widgets in Customizer
-		add_theme_support( 'customize_selective_refresh_widgets' );
+		add_theme_support( 'customize-selective-refresh-widgets' );
 
 		// Add theme support for Custom Logo.
 		add_theme_support(