WordPress.org

Make WordPress Core

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

File bookmark-template-php-NEW.diff, 1.1 KB (added by jhodgdon, 11 years ago)

New patch compatible with new term/category structure of 2.3 bleeding

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

     
    9696                if ( '' != $rel )
    9797                        $rel = ' rel="' . $rel . '"';
    9898
    99                 $desc = attribute_escape($row->link_description);
    100                 $name = attribute_escape($row->link_name);
     99                $desc = attribute_escape(apply_filters('link_description', $row->link_description));
     100                $name = attribute_escape(apply_filters('link_title', $row->link_name));
    101101                $title = $desc;
    102102
    103103                if ( $show_updated )
     
    229229                        // Handle each category.
    230230
    231231                        // Display the category name
    232                         echo '  <li id="linkcat-' . $cat->term_id . '" class="linkcat"><h2>' . $cat->name . "</h2>\n\t<ul>\n";
     232                        $catname = apply_filters('link_category', $cat->name);
     233                        echo '  <li id="linkcat-' . $cat->term_ID . '" class="linkcat"><h2>' . $catname . "</h2>\n\t<ul>\n";
    233234                        // Call get_links() with all the appropriate params
    234235                        get_links($cat->term_id, '<li>', "</li>", "\n", true, 'name', false);
    235236