#3446 closed defect (bug) (fixed)
Blogroll showing post categories but not link categories
Reported by: | mattyrob | Owned by: | westi |
---|---|---|---|
Milestone: | 2.1 | Priority: | high |
Severity: | major | Version: | 2.1 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
The function to call categories does not appear to be working as I am expecting.
As I understand from looking at the code, for WP2.1 post and link categories are to be amalgamanted. Functions are being written that allow WP and plugins to seperate categories containing only links and those containing only posts.
At the moment the blogroll page (link-manager.php) calls the get_categories function as follows:
get_categories("hide_empty=1&type=link");
but on my test site it returns categories containing POSTS not LINKS.
Is this a defect in the code as I am unable to find a way to call link categories only?
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Ok this is because by default in get_categories hierarchical is set to 1 and that means that get categories does not limit by type.
The attached patch fixes this issue.
However should we really be using wp_dropdown_cats here?