Quadrat+Skatepark: Remove code that removes support for block templates (#4693)
This commit is contained in:
parent
b5475761f2
commit
435d89a95c
2 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue