Make WordPress Core

Ticket #2393: inline-uploading.php.diff

File inline-uploading.php.diff, 1.3 KB (added by leftjustified, 18 years ago)

Patch for 2.0.4

  • wp-admin/inline-uploading.php

     
    238238                        $xpadding = (128 - $image['uwidth']) / 2;
    239239                        $ypadding = (96 - $image['uheight']) / 2;
    240240                        $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);
    242242                        $script .= "aa[{$ID}] = '<a id=\"p{$ID}\" rel=\"attachment\" class=\"imagelink\" href=\"$href\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">';
    243243ab[{$ID}] = '<a class=\"imagelink\" href=\"{$image['guid']}\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">';
    244244imga[{$ID}] = '<img id=\"image{$ID}\" src=\"$src\" alt=\"{$title}\" $height_width />';
     
    258258</div>
    259259";
    260260                } else {
    261                         $title = htmlentities($attachment['post_title'], ENT_QUOTES);
     261                        $title = wp_specialchars($attachment['post_title'], ENT_QUOTES);
    262262                        $filename = basename($attachment['guid']);
    263263                        $icon = get_attachment_icon($ID);
    264264                        $toggle_icon = "<a id=\"I{$ID}\" onclick=\"toggleOtherIcon({$ID});return false;\" href=\"javascript:void()\">$__using_title</a>";