Make WordPress Core


Ignore:
Timestamp:
09/23/2007 07:25:15 PM (16 years ago)
Author:
ryan
Message:

Add some filtering. Props jhodgdon. fixes #3595

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r6088 r6160  
    586586            $rel = ' rel="' . $rel . '"';
    587587
    588         $desc = attribute_escape($row->link_description);
    589         $name = attribute_escape($row->link_name);
     588        $desc = attribute_escape(sanitize_bookmark_field('link_description', $row->link_description, $row->link_id, 'display'));
     589        $name = attribute_escape(sanitize_bookmark_field('link_name', $row->link_name, $row->link_id, 'display'));
    590590        $title = $desc;
    591591
     
    668668
    669669            // Display the category name
    670             echo '  <li id="linkcat-' . $cat->term_id . '" class="linkcat"><h2>' . $cat->name . "</h2>\n\t<ul>\n";
     670            echo '  <li id="linkcat-' . $cat->term_id . '" class="linkcat"><h2>' . apply_filters('link_category', $cat->name ) . "</h2>\n\t<ul>\n";
    671671            // Call get_links() with all the appropriate params
    672672            get_links($cat->term_id, '<li>', "</li>", "\n", true, 'name', false);
     
    705705
    706706function get_linkrating($link) {
    707     return apply_filters('link_rating', $link->link_rating);
     707    return sanitize_bookmark_field('link_rating', $link->link_rating, $link->link_id, 'display');
    708708}
    709709
Note: See TracChangeset for help on using the changeset viewer.