Media Templates: More escaping rather than interpolation. see #21785.
Built from https://develop.svn.wordpress.org/trunk@28039 git-svn-id: http://core.svn.wordpress.org/trunk@27869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9a82e9070e
commit
3ff5c2c954
|
@ -207,7 +207,7 @@ function wp_print_media_templates() {
|
||||||
|
|
||||||
<# if ( data.suggestedWidth && data.suggestedHeight ) { #>
|
<# if ( data.suggestedWidth && data.suggestedHeight ) { #>
|
||||||
<p class="suggested-dimensions">
|
<p class="suggested-dimensions">
|
||||||
<?php _e( 'Suggested image dimensions:' ); ?> {{{data.suggestedWidth}}} × {{{data.suggestedHeight}}}
|
<?php _e( 'Suggested image dimensions:' ); ?> {{data.suggestedWidth}} × {{data.suggestedHeight}}
|
||||||
</p>
|
</p>
|
||||||
<# } #>
|
<# } #>
|
||||||
|
|
||||||
|
@ -977,7 +977,7 @@ function wp_print_media_templates() {
|
||||||
<div class="dashicons dashicons-edit edit"></div><div class="dashicons dashicons-no-alt remove"></div>
|
<div class="dashicons dashicons-edit edit"></div><div class="dashicons dashicons-no-alt remove"></div>
|
||||||
</div>
|
</div>
|
||||||
<# if ( data.attachments ) { #>
|
<# if ( data.attachments ) { #>
|
||||||
<div class="gallery gallery-columns-{{{ data.columns }}}">
|
<div class="gallery gallery-columns-{{ data.columns }}">
|
||||||
<# _.each( data.attachments, function( attachment, index ) { #>
|
<# _.each( data.attachments, function( attachment, index ) { #>
|
||||||
<dl class="gallery-item">
|
<dl class="gallery-item">
|
||||||
<dt class="gallery-icon">
|
<dt class="gallery-icon">
|
||||||
|
|
Loading…
Reference in New Issue