WordPress.org

Make WordPress Core

Ticket #3595: bookmark-template-php-2.diff

File bookmark-template-php-2.diff, 1.2 KB (added by jhodgdon, 8 years ago)

Another patch for different function in bookmark-template.php

  • E:/EclipseWork/WordPressDev/wp-includes/bookmark-template.php

     
    266266                if ( '' != $rel ) 
    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 ) 
    274274                        if ( '00' != substr($bookmark->link_updated_f, 0, 2) ) { 
     
    336336                        if ( empty($bookmarks) ) 
    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"; 
    342343                }