Ticket #2393: inline-uploading.php.diff
File inline-uploading.php.diff, 1.3 KB (added by , 18 years ago) |
---|
-
wp-admin/inline-uploading.php
238 238 $xpadding = (128 - $image['uwidth']) / 2; 239 239 $ypadding = (96 - $image['uheight']) / 2; 240 240 $style .= "#target{$ID} img { padding: {$ypadding}px {$xpadding}px; }\n"; 241 $title = htmlentities($image['post_title'], ENT_QUOTES);241 $title = wp_specialchars($image['post_title'], ENT_QUOTES); 242 242 $script .= "aa[{$ID}] = '<a id=\"p{$ID}\" rel=\"attachment\" class=\"imagelink\" href=\"$href\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">'; 243 243 ab[{$ID}] = '<a class=\"imagelink\" href=\"{$image['guid']}\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">'; 244 244 imga[{$ID}] = '<img id=\"image{$ID}\" src=\"$src\" alt=\"{$title}\" $height_width />'; … … 258 258 </div> 259 259 "; 260 260 } else { 261 $title = htmlentities($attachment['post_title'], ENT_QUOTES);261 $title = wp_specialchars($attachment['post_title'], ENT_QUOTES); 262 262 $filename = basename($attachment['guid']); 263 263 $icon = get_attachment_icon($ID); 264 264 $toggle_icon = "<a id=\"I{$ID}\" onclick=\"toggleOtherIcon({$ID});return false;\" href=\"javascript:void()\">$__using_title</a>";