Procházet zdrojové kódy

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

Ben Dwyer před 3 roky
rodič
revize
435d89a95c
2 změnil soubory, kde provedl 1 přidání a 5 odebrání
  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' ),
 			)
 		);
-
-		remove_theme_support( 'block-templates' );
 	}
 	add_action( 'after_setup_theme', 'quadrat_support' );
 endif;

+ 1 - 3
skatepark/functions.php

@@ -28,8 +28,6 @@ if ( ! function_exists( 'skatepark_support' ) ) :
 				'social' => __( 'Social Navigation', 'skatepark' )
 			)
 		);
-
-		remove_theme_support( 'block-templates' );
 	}
 	add_action( 'after_setup_theme', 'skatepark_support' );
 endif;
@@ -61,7 +59,7 @@ require get_stylesheet_directory() . '/inc/block-styles.php';
 /**
  * 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;
 	if ( isset ( $post->ID ) && get_the_post_thumbnail( $post->ID ) ) {
 		$classes[] = 'has-featured-image';