mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
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
@ -447,15 +447,13 @@ function wp_print_media_templates() {
|
||||
<div class="{{ className }} data-{{ field }}"><#
|
||||
if ( 'uploadedTo' === field ) {
|
||||
if ( data[ field ] ) {
|
||||
#><?php _e( 'Uploaded To: ' ) ?><#
|
||||
#><?php _e( 'Uploaded To: ' ) ?>{{ data.uploadedToTitle }}<#
|
||||
} else {
|
||||
#><?php _e( 'Unattached' ) ?><#
|
||||
}
|
||||
} else if ( 'title' === field && ! data[ field ] ) {
|
||||
#><?php _e( '(No title)' ) ?><#
|
||||
}
|
||||
|
||||
if ( data[ field ] ) {
|
||||
} else if ( data[ field ] ) {
|
||||
#>{{ data[ field ] }}<#
|
||||
}
|
||||
#></div>
|
||||
|
Loading…
Reference in New Issue
Block a user