Coding Standards: Escape thumbnail URL and attributes in wp_image_editor().
Follow-up to [11965]. Props benazeer, dhruvang21, sabernhardt. Fixes #62951. Built from https://develop.svn.wordpress.org/trunk@59990 git-svn-id: http://core.svn.wordpress.org/trunk@59332 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -293,7 +293,7 @@ function wp_image_editor( $post_id, $msg = false ) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="imgedit-thumbnail-preview-group">
|
<div class="imgedit-thumbnail-preview-group">
|
||||||
<figure class="imgedit-thumbnail-preview">
|
<figure class="imgedit-thumbnail-preview">
|
||||||
<img src="<?php echo $thumb['url']; ?>" width="<?php echo $thumb_img[0]; ?>" height="<?php echo $thumb_img[1]; ?>" class="imgedit-size-preview" alt="" draggable="false" />
|
<img src="<?php echo esc_url( $thumb['url'] ); ?>" width="<?php echo esc_attr( $thumb_img[0] ); ?>" height="<?php echo esc_attr( $thumb_img[1] ); ?>" class="imgedit-size-preview" alt="" draggable="false" />
|
||||||
<figcaption class="imgedit-thumbnail-preview-caption"><?php _e( 'Current thumbnail' ); ?></figcaption>
|
<figcaption class="imgedit-thumbnail-preview-caption"><?php _e( 'Current thumbnail' ); ?></figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
<div id="imgedit-save-target-<?php echo $post_id; ?>" class="imgedit-save-target">
|
<div id="imgedit-save-target-<?php echo $post_id; ?>" class="imgedit-save-target">
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.8-beta2-59989';
|
$wp_version = '6.8-beta2-59990';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|||||||
Reference in New Issue
Block a user