From 7abd4bc951de1f15851dba185eb94b496bbf02e8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 24 Jun 2022 13:52:13 +0000 Subject: [PATCH] Media: Use correct escaping function for URLs in some legacy media functions. This affects: * `get_image_send_to_editor()` * `image_link_input_fields()` Follow-up to [7092], [7874], [8653], [11109], [11204], [11383], [12051], [12199], [19982]. Props smit08, mukesh27. Fixes #56064. Built from https://develop.svn.wordpress.org/trunk@53570 git-svn-id: http://core.svn.wordpress.org/trunk@53159 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 56825012f0..6a641658b5 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -145,7 +145,7 @@ function get_image_send_to_editor( $id, $caption, $title, $align, $url = '', $re } if ( $url ) { - $html = '' . $html . ''; + $html = '' . $html . ''; } /** @@ -1269,8 +1269,8 @@ function image_link_input_fields( $post, $url_type = '' ) { return "
- - + + '; } diff --git a/wp-includes/version.php b/wp-includes/version.php index ca6c3efaf2..616514e28d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53568'; +$wp_version = '6.1-alpha-53570'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.