Media Grid: Use the proper attachment value for uploadedToTitle.

See #24716.


git-svn-id: https://develop.svn.wordpress.org/trunk@28997 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-07-04 05:03:06 +00:00
parent 9ba94b5c58
commit 7438b91f6f

View File

@ -446,17 +446,15 @@ function wp_print_media_templates() {
#> #>
<div class="{{ className }} data-{{ field }}"><# <div class="{{ className }} data-{{ field }}"><#
if ( 'uploadedTo' === field ) { if ( 'uploadedTo' === field ) {
if ( data[field] ) { if ( data[ field ] ) {
#><?php _e( 'Uploaded To: ' ) ?><# #><?php _e( 'Uploaded To: ' ) ?>{{ data.uploadedToTitle }}<#
} else { } else {
#><?php _e( 'Unattached' ) ?><# #><?php _e( 'Unattached' ) ?><#
} }
} else if ( 'title' === field && ! data[ field ] ) { } else if ( 'title' === field && ! data[ field ] ) {
#><?php _e( '(No title)' ) ?><# #><?php _e( '(No title)' ) ?><#
} } else if ( data[ field ] ) {
#>{{ data[ field ] }}<#
if ( data[ field ] ) {
#>{{ data[ field ] }}<#
} }
#></div> #></div>
<# }); #> <# }); #>