Doh. Fix wp_list_bookmarks().

git-svn-id: http://svn.automattic.com/wordpress/trunk@3899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-06-22 03:55:03 +00:00
parent acf8588752
commit a4a52da923
1 changed files with 1 additions and 1 deletions

View File

@ -359,11 +359,11 @@ function wp_list_bookmarks($args = '') {
if ( $categorize ) {
$cats = get_categories("type=link&orderby=$category_orderby&order=$category_order&hierarchical=0");
foreach ( (array) $cats as $cat ) {
$r['category'] = $cat->cat_ID;
$bookmarks = get_bookmarks($r);
if ( empty($bookmarks) )
continue;
$output .= "<li id=\"linkcat-$cat->cat_ID\">$title_before$cat->cat_name$title_after\n\t<ul>\n";
$r['category'] = $cat->cat_ID;
$output .= _walk_bookmarks($bookmarks, $r);
$output .= "\n\t</ul>\n</li>\n";
}