Media Grid: Use the proper attachment value for `uploadedToTitle`.

See #24716.

Built from https://develop.svn.wordpress.org/trunk@28997


git-svn-id: http://core.svn.wordpress.org/trunk@28785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-07-04 05:04:15 +00:00
parent 2938a50a28
commit 6b377e12a0
1 changed files with 4 additions and 6 deletions

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>
<# }); #> <# }); #>