WordPress.org

Make WordPress Core

Ticket #18185: 18185.diff

File 18185.diff, 424 bytes (added by kawauso, 7 years ago)
  • wp-admin/includes/media.php

     
    274274                        $content = $image_meta['caption'];
    275275        }
    276276
    277         $title = isset($desc) ? $desc : '';
     277        if ( isset( $desc ) )
     278                $title = $desc;
    278279
    279280        // Construct the attachment array
    280281        $attachment = array_merge( array(