Make WordPress Core

Ticket #51062: 51062.diff

File 51062.diff, 742 bytes (added by Hareesh Pillai, 6 years ago)
  • src/wp-content/themes/twentyfifteen/inc/template-tags.php

     
    121121                                '<span class="full-size-link"><span class="screen-reader-text">%1$s </span><a href="%2$s">%3$s &times; %4$s</a></span>',
    122122                                _x( 'Full size', 'Used before full size attachment link.', 'twentyfifteen' ),
    123123                                esc_url( wp_get_attachment_url() ),
    124                                 $metadata['width'],
    125                                 $metadata['height']
     124                                isset( $metadata['width'] ) ? $metadata['width'] : 0,
     125                                isset( $metadata['height'] ) ? $metadata['height'] : 0
    126126                        );
    127127                }
    128128