[wp-trac] Re: [WordPress Trac] #4609: Default theme (Kubrick): WP
2.3 do not display all links
WordPress Trac
wp-trac at lists.automattic.com
Sat Jul 14 08:07:09 GMT 2007
#4609: Default theme (Kubrick): WP 2.3 do not display all links
----------------------------+-----------------------------------------------
Reporter: albaran | Owner: anonymous
Type: defect | Status: reopened
Priority: normal | Milestone: 2.4 (future)
Component: Administration | Version: 2.3
Severity: normal | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Comment (by albaran):
Why milestone set to 2.4 (future)? must be done for 2.3 ; you cannot
distribute a default theme which list only the Blogroll category.
either one modify the call to wp_list_bookmarks in sidebar.php, or one
modify this function.
may be this one for wp_list_bookmarks is better?
{{{
//Split the bookmarks into ul's for each category
if ($args == '') { # if empty, display all links
$cats = get_terms('link_category', 'get=all');
} else {
$cats = get_terms('link_category',
"category_name=$category_name&include=$category&orderby=$category_orderby&order=$category_order&hierarchical=0");
}
}}}
tested only to display all links, doesn't know if it is correct for a non-
empty $args.
--
Ticket URL: <http://trac.wordpress.org/ticket/4609#comment:17>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list