Make WordPress Core

Changeset 18698


Ignore:
Timestamp:
09/17/2011 06:27:32 PM (12 years ago)
Author:
duck_
Message:

Don't obliterate $title if $desc isn't set. Props kawauso. Fixes #18185.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r18674 r18698  
    275275    }
    276276
    277     $title = isset($desc) ? $desc : '';
     277    if ( isset( $desc ) )
     278        $title = $desc;
    278279
    279280    // Construct the attachment array
Note: See TracChangeset for help on using the changeset viewer.