updated plugin GP Premium
version 2.1.1
This commit is contained in:
@ -317,6 +317,7 @@ class GeneratePress_Site_Layout {
|
||||
remove_action( 'generate_after_header', 'generate_blog_single_featured_image' );
|
||||
remove_action( 'generate_before_content', 'generate_featured_page_header_inside_single' );
|
||||
remove_action( 'generate_after_header', 'generate_featured_page_header' );
|
||||
add_filter( 'body_class', array( $this, 'remove_featured_image_class' ), 20 );
|
||||
}
|
||||
|
||||
if ( $this->disable_content_title ) {
|
||||
@ -496,4 +497,18 @@ class GeneratePress_Site_Layout {
|
||||
return $classes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the featured image class if it's disabled.
|
||||
*
|
||||
* @since 2.1.0
|
||||
* @param array $classes The body classes.
|
||||
*/
|
||||
public function remove_featured_image_class( $classes ) {
|
||||
if ( is_singular() ) {
|
||||
$classes = generate_premium_remove_featured_image_class( $classes, $this->disable_featured_image );
|
||||
}
|
||||
|
||||
return $classes;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user