Make WordPress Core

Ticket #57096: 57096.1.diff

File 57096.1.diff, 710 bytes (added by dhrumilk, 2 years ago)

Updated diff.

  • 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 8da66accd3..de5ef39ef5 100644
    a b function render_block_core_post_featured_image( $attributes, $content, $block ) 
    6060                $height         = ! empty( $attributes['height'] ) ? 'style="' . esc_attr( safecss_filter_attr( 'height:' . $attributes['height'] ) ) . '"' : '';
    6161                $featured_image = sprintf(
    6262                        '<a href="%1$s" target="%2$s" %3$s %4$s>%5$s%6$s</a>',
    63                         get_the_permalink( $post_ID ),
     63                        esc_url( $attributes['rel'] ),
    6464                        esc_attr( $link_target ),
    6565                        $rel,
    6666                        $height,