Ticket #3898: wp_list_bookmarks_fix.diff
File wp_list_bookmarks_fix.diff, 1.2 KB (added by , 18 years ago) |
---|
-
wp-includes/bookmark-template.php
331 331 $cats = get_categories("type=link&category_name=$category_name&include=$category&orderby=$category_orderby&order=$category_order&hierarchical=0"); 332 332 333 333 foreach ( (array) $cats as $cat ) { 334 $bookmarks = get_bookmarks("limit=$limit&category={$cat->cat_ID}&show_updated=$show_updated&orderby=$orderby&order=$order&hide_invisible=$hide_invisible&show_updated=$show_updated"); 334 $params = array_merge($r, array('category'=>$cat->cat_ID)); 335 $bookmarks = get_bookmarks($params); 335 336 if ( empty($bookmarks) ) 336 337 continue; 337 338 $output .= str_replace(array('%id', '%class'), array("linkcat-$cat->cat_ID", $class), $category_before); … … 341 342 } 342 343 } else { 343 344 //output one single list using title_li for the title 344 $bookmarks = get_bookmarks( "limit=$limit&category=$category&show_updated=$show_updated&orderby=$orderby&order=$order&hide_invisible=$hide_invisible&show_updated=$show_updated");345 $bookmarks = get_bookmarks($r); 345 346 346 347 if ( !empty($bookmarks) ) { 347 348 if ( !empty( $title_li ) ){