updated plugin GP Premium
version 2.1.1
This commit is contained in:
@ -430,7 +430,13 @@ class GeneratePress_Block_Elements {
|
||||
|
||||
if ( has_post_thumbnail( $id ) ) {
|
||||
$size = ! empty( $attributes['imageSize'] ) ? $attributes['imageSize'] : 'full';
|
||||
$featured_image = get_the_post_thumbnail( $id, $size, array( 'class' => 'dynamic-featured-image' ) );
|
||||
$featured_image_classes = array( 'dynamic-featured-image' );
|
||||
|
||||
if ( ! empty( $attributes['className'] ) ) {
|
||||
$featured_image_classes[] = $attributes['className'];
|
||||
}
|
||||
|
||||
$featured_image = get_the_post_thumbnail( $id, $size, array( 'class' => implode( ' ', $featured_image_classes ) ) );
|
||||
|
||||
// We can't alter the width/height generated by get_the_post_thumbnail(), so we need to resort to this.
|
||||
if ( ! empty( $attributes['imageWidth'] ) ) {
|
||||
|
Reference in New Issue
Block a user