Doh. Fix wp_list_bookmarks().

git-svn-id: https://develop.svn.wordpress.org/trunk@3899 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-06-22 03:55:03 +00:00
parent 909671e026
commit 87cfd68337
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";
}