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:
parent
2938a50a28
commit
6b377e12a0
|
@ -446,17 +446,15 @@ function wp_print_media_templates() {
|
|||
#>
|
||||
<div class="{{ className }} data-{{ field }}"><#
|
||||
if ( 'uploadedTo' === field ) {
|
||||
if ( data[field] ) {
|
||||
#><?php _e( 'Uploaded To: ' ) ?><#
|
||||
if ( data[ field ] ) {
|
||||
#><?php _e( 'Uploaded To: ' ) ?>{{ data.uploadedToTitle }}<#
|
||||
} else {
|
||||
#><?php _e( 'Unattached' ) ?><#
|
||||
}
|
||||
} else if ( 'title' === field && ! data[ field ] ) {
|
||||
#><?php _e( '(No title)' ) ?><#
|
||||
}
|
||||
|
||||
if ( data[ field ] ) {
|
||||
#>{{ data[ field ] }}<#
|
||||
} else if ( data[ field ] ) {
|
||||
#>{{ data[ field ] }}<#
|
||||
}
|
||||
#></div>
|
||||
<# }); #>
|
||||
|
|
Loading…
Reference in New Issue