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:
parent
9ba94b5c58
commit
7438b91f6f
@ -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
Block a user