updated plugin GP Premium version 2.1.1

This commit is contained in:
2021-12-20 13:41:59 +00:00
committed by Gitium
parent 132b46b78f
commit d5dbb2bde7
86 changed files with 2903 additions and 455 deletions

View File

@ -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'] ) ) {