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

This commit is contained in:
Ben Dwyer 2021-09-24 14:27:03 +01:00 committed by GitHub
parent b5475761f2
commit 435d89a95c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View file

@ -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;

View file

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