Make WordPress Core

Ticket #17262: 17262.11.diff

File 17262.11.diff, 567 bytes (added by csesumonpro, 5 years ago)

Patch created

  • src/wp-includes/blocks/post-featured-image.php

    diff --git a/src/wp-includes/blocks/post-featured-image.php b/src/wp-includes/blocks/post-featured-image.php
    index 21e6aca445..67d016ec94 100644
    a b function render_block_core_post_featured_image( $attributes, $content, $block )  
    1919        }
    2020        $post_ID = $block->context['postId'];
    2121
    22         $featured_image = get_the_post_thumbnail( $post_ID );
     22        $featured_image = get_the_post_thumbnail( $post_ID , 'thumbnail');
    2323        if ( ! $featured_image ) {
    2424                return '';
    2525        }