WordPress.org

Make WordPress Core

Ticket #16681: bookmark-template.patch

File bookmark-template.patch, 925 bytes (added by robhogg, 4 years ago)

Patch for wp-includes/bookmark-template.php

  • wp-includes/bookmark-template.

    old new  
    218218        if ( $categorize ) { 
    219219                //Split the bookmarks into ul's for each category 
    220220                $cats = get_terms('link_category', array('name__like' => $category_name, 'include' => $category, 'exclude' => $exclude_category, 'orderby' => $category_orderby, 'order' => $category_order, 'hierarchical' => 0)); 
     221                 
     222                //open the outermost ul 
     223                $output .= "<ul class=\"xoxo blogroll\">\n"; 
    221224 
    222225                foreach ( (array) $cats as $cat ) { 
    223226                        $params = array_merge($r, array('category'=>$cat->term_id)); 
     
    230233                        $output .= _walk_bookmarks($bookmarks, $r); 
    231234                        $output .= "\n\t</ul>\n$category_after\n"; 
    232235                } 
     236                         
     237                //close the outer ul 
     238                $output .= "</ul>\n"; 
    233239        } else { 
    234240                //output one single list using title_li for the title 
    235241                $bookmarks = get_bookmarks($r);