WordPress.org

Make WordPress Core

Changeset 28997


Ignore:
Timestamp:
07/04/2014 05:03:06 AM (7 years ago)
Author:
wonderboymusic
Message:

Media Grid: Use the proper attachment value for uploadedToTitle.

See #24716.

File:
1 edited

Legend:

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

    r28996 r28997  
    447447            <div class="{{ className }} data-{{ field }}"><#
    448448                if ( 'uploadedTo' === field ) {
    449                     if ( data[field] ) {
    450                     #><?php _e( 'Uploaded To: ' ) ?><#
     449                    if ( data[ field ] ) {
     450                    #><?php _e( 'Uploaded To: ' ) ?>{{ data.uploadedToTitle }}<#
    451451                    } else {
    452452                    #><?php _e( 'Unattached' ) ?><#
     
    454454                } else if ( 'title' === field && ! data[ field ] ) {
    455455                #><?php _e( '(No title)' ) ?><#
    456                 }
    457 
    458                 if ( data[ field ] ) {
    459                     #>{{ data[ field ] }}<#
     456                } else if ( data[ field ] ) {
     457                #>{{ data[ field ] }}<#
    460458                }
    461459            #></div>
Note: See TracChangeset for help on using the changeset viewer.