Make WordPress Core

Changeset 3544


Ignore:
Timestamp:
02/17/2006 02:05:40 AM (20 years ago)
Author:
ryan
Message:

Use wp_specialchars() to avoid double encoding. Props zonble. fixes #2446

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/inline-uploading.php

    r3541 r3544  
    235235            $ypadding = (96 - $image['uheight']) / 2;
    236236            $style .= "#target{$ID} img { padding: {$ypadding}px {$xpadding}px; }\n";
    237             $title = htmlentities($image['post_title'], ENT_QUOTES);
     237            $title = wp_specialchars($image['post_title'], ENT_QUOTES);
    238238            $script .= "aa[{$ID}] = '<a id=\"p{$ID}\" rel=\"attachment\" class=\"imagelink\" href=\"$href\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">';
    239239ab[{$ID}] = '<a class=\"imagelink\" href=\"{$image['guid']}\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">';
     
    255255";
    256256        } else {
    257             $title = htmlentities($attachment['post_title'], ENT_QUOTES);
     257            $title = wp_specialchars($attachment['post_title'], ENT_QUOTES);
    258258            $filename = basename($attachment['guid']);
    259259            $icon = get_attachment_icon($ID);
Note: See TracChangeset for help on using the changeset viewer.