Make WordPress Core


Ignore:
Timestamp:
12/21/2006 10:10:04 AM (19 years ago)
Author:
markjaquith
Message:

new function for escaping within attributes: attribute_escape()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/links.php

    r3762 r4656  
    213213        $the_link = '#';
    214214        if (!empty($row->link_url))
    215             $the_link = wp_specialchars($row->link_url);
     215            $the_link = attribute_escape($row->link_url);
    216216
    217217        $rel = $row->link_rel;
     
    220220        }
    221221
    222         $desc = wp_specialchars($row->link_description, ENT_QUOTES);
    223         $name = wp_specialchars($row->link_name, ENT_QUOTES);
     222        $desc = attribute_escape($row->link_description);
     223        $name = attribute_escape($row->link_name);
    224224        $title = $desc;
    225225
Note: See TracChangeset for help on using the changeset viewer.