From d5629b2d5334765330182cbee8dbacbee1822a9a Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 17 Feb 2006 02:05:40 +0000 Subject: [PATCH] Use wp_specialchars() to avoid double encoding. Props zonble. fixes #2446 git-svn-id: https://develop.svn.wordpress.org/trunk@3544 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/inline-uploading.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/inline-uploading.php b/wp-admin/inline-uploading.php index 5679cdf3d5..97dc090c5b 100644 --- a/wp-admin/inline-uploading.php +++ b/wp-admin/inline-uploading.php @@ -234,7 +234,7 @@ srcb[{$ID}] = '{$image['guid']}'; $xpadding = (128 - $image['uwidth']) / 2; $ypadding = (96 - $image['uheight']) / 2; $style .= "#target{$ID} img { padding: {$ypadding}px {$xpadding}px; }\n"; - $title = htmlentities($image['post_title'], ENT_QUOTES); + $title = wp_specialchars($image['post_title'], ENT_QUOTES); $script .= "aa[{$ID}] = ''; ab[{$ID}] = ''; imga[{$ID}] = '\"{$title}\"'; @@ -254,7 +254,7 @@ imgb[{$ID}] = '\"{$title}\" "; } else { - $title = htmlentities($attachment['post_title'], ENT_QUOTES); + $title = wp_specialchars($attachment['post_title'], ENT_QUOTES); $filename = basename($attachment['guid']); $icon = get_attachment_icon($ID); $toggle_icon = "$__using_title";