From c5db33f82e893371e84b624028f7e517b63ca7d1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 24 Jun 2022 13:50:53 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@53570 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/media.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/media.php b/src/wp-admin/includes/media.php index 56825012f0..6a641658b5 100644 --- a/src/wp-admin/includes/media.php +++ b/src/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 "
- - + + '; }