Don't display an empty "Uploaded To" link in the media modal after [29436].
see #28844. Built from https://develop.svn.wordpress.org/trunk@29537 git-svn-id: http://core.svn.wordpress.org/trunk@29313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
542e56ac3f
commit
aed104c51b
|
@ -395,7 +395,11 @@ function wp_print_media_templates() {
|
|||
<# if ( data.uploadedTo ) { #>
|
||||
<label class="setting">
|
||||
<span class="name"><?php _e( 'Uploaded To' ); ?></span>
|
||||
<# if ( data.uploadedToLink ) { #>
|
||||
<span class="value"><a href="{{ data.uploadedToLink }}">{{ data.uploadedToTitle }}</a></span>
|
||||
<# } else { #>
|
||||
<span class="value">{{ data.uploadedToTitle }}</span>
|
||||
<# } #>
|
||||
</label>
|
||||
<# } #>
|
||||
<div class="attachment-compat"></div>
|
||||
|
@ -567,8 +571,12 @@ function wp_print_media_templates() {
|
|||
</label>
|
||||
<# if ( data.uploadedTo ) { #>
|
||||
<label class="setting">
|
||||
<span class="name"><?php _e('Uploaded To'); ?></span>
|
||||
<span class="name"><?php _e( 'Uploaded To' ); ?></span>
|
||||
<# if ( data.uploadedToLink ) { #>
|
||||
<span class="value"><a href="{{ data.uploadedToLink }}">{{ data.uploadedToTitle }}</a></span>
|
||||
<# } else { #>
|
||||
<span class="value">{{ data.uploadedToTitle }}</span>
|
||||
<# } #>
|
||||
</label>
|
||||
<# } #>
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue