Ticket #1816: links.php.diff

File links.php.diff, 1005 bytes (added by markjaquith, 7 years ago)

Patch for wp 1.6 SVN

  • wp-includes/links.php

     
    529529        $cats = $wpdb->get_results(" 
    530530                SELECT DISTINCT link_category, cat_name, show_images,  
    531531                        show_description, show_rating, show_updated, sort_order,  
    532                         sort_desc, list_limit 
     532                        sort_desc, list_limit, text_before_link, text_after_link, text_after_all 
    533533                FROM `$wpdb->links`  
    534534                LEFT JOIN `$wpdb->linkcategories` ON (link_category = cat_id) 
    535535                WHERE link_visible =  'Y' 
     
    548548                        echo '  <li id="linkcat-' . $cat['link_category'] . '"><h2>' . $cat['cat_name'] . "</h2>\n\t<ul>\n"; 
    549549                        // Call get_links() with all the appropriate params 
    550550                        get_links($cat['link_category'], 
    551                                 '<li>',"</li>","\n", 
     551                                $cat['text_before_link'], 
     552                                $cat['text_after_all'], 
     553                                $cat['text_after_link'], 
    552554                                bool_from_yn($cat['show_images']), 
    553555                                $orderby, 
    554556                                bool_from_yn($cat['show_description']),