浏览代码

Quadrat+Skatepark: Remove code that removes support for block templates (#4693)

Ben Dwyer 3 年之前
父节点
当前提交
435d89a95c
共有 2 个文件被更改,包括 1 次插入5 次删除
  1. 0 2
      quadrat/functions.php
  2. 1 3
      skatepark/functions.php

+ 0 - 2
quadrat/functions.php

@@ -35,8 +35,6 @@ if ( ! function_exists( 'quadrat_support' ) ) :
 				'primary' => __( 'Primary Navigation', 'quadrat' ),
 				'primary' => __( 'Primary Navigation', 'quadrat' ),
 			)
 			)
 		);
 		);
-
-		remove_theme_support( 'block-templates' );
 	}
 	}
 	add_action( 'after_setup_theme', 'quadrat_support' );
 	add_action( 'after_setup_theme', 'quadrat_support' );
 endif;
 endif;

+ 1 - 3
skatepark/functions.php

@@ -28,8 +28,6 @@ if ( ! function_exists( 'skatepark_support' ) ) :
 				'social' => __( 'Social Navigation', 'skatepark' )
 				'social' => __( 'Social Navigation', 'skatepark' )
 			)
 			)
 		);
 		);
-
-		remove_theme_support( 'block-templates' );
 	}
 	}
 	add_action( 'after_setup_theme', 'skatepark_support' );
 	add_action( 'after_setup_theme', 'skatepark_support' );
 endif;
 endif;
@@ -61,7 +59,7 @@ require get_stylesheet_directory() . '/inc/block-styles.php';
 /**
 /**
  * Add class to body if post/page has a featured image.
  * Add class to body if post/page has a featured image.
  */
  */
-function add_featured_image_class( $classes ) {    
+function add_featured_image_class( $classes ) {
 	global $post;
 	global $post;
 	if ( isset ( $post->ID ) && get_the_post_thumbnail( $post->ID ) ) {
 	if ( isset ( $post->ID ) && get_the_post_thumbnail( $post->ID ) ) {
 		$classes[] = 'has-featured-image';
 		$classes[] = 'has-featured-image';