mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Media templates: Make sure we have a width and height before printing dimensions. We don't calculate dimensions for icons. fixes #22680.
git-svn-id: http://core.svn.wordpress.org/trunk@22976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
904306e1ce
commit
36dedb38d1
@ -1662,7 +1662,7 @@ function wp_print_media_templates() {
|
|||||||
<div class="details">
|
<div class="details">
|
||||||
<div class="filename">{{ data.filename }}</div>
|
<div class="filename">{{ data.filename }}</div>
|
||||||
<div class="uploaded">{{ data.dateFormatted }}</div>
|
<div class="uploaded">{{ data.dateFormatted }}</div>
|
||||||
<# if ( 'image' === data.type && ! data.uploading ) { #>
|
<# if ( 'image' === data.type && ! data.uploading && data.width && data.height ) { #>
|
||||||
<div class="dimensions">{{ data.width }} × {{ data.height }}</div>
|
<div class="dimensions">{{ data.width }} × {{ data.height }}</div>
|
||||||
<# } #>
|
<# } #>
|
||||||
<# if ( ! data.uploading ) { #>
|
<# if ( ! data.uploading ) { #>
|
||||||
|
Loading…
Reference in New Issue
Block a user