Merge two `class` attributes in `WP_Customize_Media_Control::content_template()` and `wp_print_media_templates()`.
props nicholas_io. fixes #32896. git-svn-id: https://develop.svn.wordpress.org/trunk@33090 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1b02636793
commit
345521666e
|
@ -814,7 +814,7 @@ class WP_Customize_Media_Control extends WP_Customize_Control {
|
|||
</video>
|
||||
</div>
|
||||
<# } else { #>
|
||||
<img class="attachment-thumb type-icon" src="{{ data.attachment.icon }}" class="icon" draggable="false" />
|
||||
<img class="attachment-thumb type-icon icon" src="{{ data.attachment.icon }}" draggable="false" />
|
||||
<p class="attachment-title">{{ data.attachment.title }}</p>
|
||||
<# } #>
|
||||
</div>
|
||||
|
|
|
@ -298,7 +298,7 @@ function wp_print_media_templates() {
|
|||
<# } else if ( 'image' === data.type && data.sizes && data.sizes.full ) { #>
|
||||
<img class="details-image" src="{{ data.sizes.full.url }}" draggable="false" />
|
||||
<# } else if ( -1 === jQuery.inArray( data.type, [ 'audio', 'video' ] ) ) { #>
|
||||
<img class="details-image" src="{{ data.icon }}" class="icon" draggable="false" />
|
||||
<img class="details-image icon" src="{{ data.icon }}" draggable="false" />
|
||||
<# } #>
|
||||
|
||||
<# if ( 'audio' === data.type ) { #>
|
||||
|
|
Loading…
Reference in New Issue