Make WordPress Core

Changeset 6160


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

Add some filtering. Props jhodgdon. fixes #3595

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/bookmark-template.php

    r6088 r6160  
    2626                        $rel = ' rel="' . $rel . '"';
    2727
    28                 $desc = attribute_escape(apply_filters('link_description', $bookmark->link_description));
    29                 $name = attribute_escape(apply_filters('link_title', $bookmark->link_name));
     28                $desc = attribute_escape(sanitize_bookmark_field('link_description', $row->link_description, $row->link_id, 'display'));
     29                $name = attribute_escape(sanitize_bookmark_field('link_name', $row->link_name, $row->link_id, 'display'));
    3030                $title = $desc;
    3131
  • 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
  • trunk/wp-links-opml.php

    r5759 r6160  
    1818<opml version="1.0">
    1919        <head>
    20                 <title>Links for <?php echo attribute_escape(get_bloginfo('name').$cat_name); ?></title>
     20                <title>Links for <?php echo attribute_escape(get_bloginfo('name', 'display').$cat_name); ?></title>
    2121                <dateCreated><?php echo gmdate("D, d M Y H:i:s"); ?> GMT</dateCreated>
    2222        </head>
Note: See TracChangeset for help on using the changeset viewer.