Make WordPress Core


Ignore:
Timestamp:
03/10/2007 01:13:49 AM (19 years ago)
Author:
ryan
Message:

Link filters from jhodgdon. fixes #3595

File:
1 edited

Legend:

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

    r4964 r5011  
    267267            $rel = ' rel="' . $rel . '"';
    268268
    269         $desc = attribute_escape($bookmark->link_description);
    270         $name = attribute_escape($bookmark->link_name);
    271         $title = $desc;
     269        $desc = attribute_escape(apply_filters('link_description', $bookmark->link_description));
     270        $name = attribute_escape(apply_filters('link_title', $bookmark->link_name));
     271        $title = $desc;
    272272
    273273        if ( $show_updated )
     
    337337                continue;
    338338            $output .= str_replace(array('%id', '%class'), array("linkcat-$cat->cat_ID", $class), $category_before);
    339             $output .= "$title_before$cat->cat_name$title_after\n\t<ul>\n";
     339            $catname = apply_filters( "link_category", $cat->cat_name );
     340            $output .= "$title_before$catname$title_after\n\t<ul>\n";
    340341            $output .= _walk_bookmarks($bookmarks, $r);
    341342            $output .= "\n\t</ul>\n$category_after\n";
Note: See TracChangeset for help on using the changeset viewer.