Make WordPress Core


Ignore:
Timestamp:
11/11/2012 05:16:41 AM (12 years ago)
Author:
koopersmith
Message:

Media: Ensure variables in the attachment details template have defined defaults.

  • Adds styling to the upload progress bar in the attachment details template.
  • Defines the filename attribute when Plupload creates the client-side Attachment model.

fixes #22410, see #21390.

File:
1 edited

Legend:

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

    r22541 r22543  
    14551455                <div class="filename">{{ filename }}</div>
    14561456                <div class="uploaded">{{ dateFormatted }}</div>
    1457                 <# if ( 'image' === type ) { #>
     1457                <# if ( 'image' === type && ! uploading ) { #>
    14581458                    <div class="dimensions">{{ width }} &times; {{ height }}</div>
    14591459                <# } #>
Note: See TracChangeset for help on using the changeset viewer.