Make WordPress Core

Ticket #53540: 53540.diff

File 53540.diff, 537 bytes (added by chintan1896, 4 years ago)
  • wp-includes/media.php

    diff --git a/wp-includes/media.php b/wp-includes/media.php
    index 4a9849d3ca..6d75910fb0 100644
    a b function wp_get_attachment_image( $attachment_id, $size = 'thumbnail', $icon = f 
    11291129 */
    11301130function wp_get_attachment_image_url( $attachment_id, $size = 'thumbnail', $icon = false ) {
    11311131        $image = wp_get_attachment_image_src( $attachment_id, $size, $icon );
    1132         return isset( $image['0'] ) ? $image['0'] : false;
     1132        return isset( $image[0] ) ? $image[0] : false;
    11331133}
    11341134
    11351135/**