From aec301558d784f29d738b14e818bf993e4ca06ba Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 16 Mar 2025 20:45:08 +0000 Subject: [PATCH] Coding Standards: Escape thumbnail URL and attributes in `wp_image_editor()`. Follow-up to [11965]. Props benazeer, dhruvang21, sabernhardt. Fixes #62951. git-svn-id: https://develop.svn.wordpress.org/trunk@59990 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/image-edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/image-edit.php b/src/wp-admin/includes/image-edit.php index 7f9ebf7f9f..d0a3abdc15 100644 --- a/src/wp-admin/includes/image-edit.php +++ b/src/wp-admin/includes/image-edit.php @@ -293,7 +293,7 @@ function wp_image_editor( $post_id, $msg = false ) {
- +
@@ -534,8 +534,8 @@ function _image_get_preview_ratio( $w, $h ) { * @see WP_Image_Editor::rotate() * * @ignore - * @param resource|GdImage $img Image resource. - * @param float|int $angle Image rotation angle, in degrees. + * @param resource|GdImage $img Image resource. + * @param float|int $angle Image rotation angle, in degrees. * @return resource|GdImage|false GD image resource or GdImage instance, false otherwise. */ function _rotate_image_resource( $img, $angle ) {