Opened 17 years ago
Closed 17 years ago
#5295 closed defect (bug) (fixed)
wp-links-opml.php will not display a single link category
Reported by: | vrypan | Owned by: | westi |
---|---|---|---|
Milestone: | 2.5 | Priority: | normal |
Severity: | major | Version: | 2.3.1 |
Component: | General | Keywords: | opml |
Focuses: | Cc: |
Description
wp-links-opml.php when called using ?link_cat=category_number should return an OPML including ONLY the category specified. However, it doesn't (it shows all link categories).
This can be fixed by replacing the line
$cats = array (get_category($link_cat));
with
$cats = get_categories('type=link&hierarchical=0&include='.$link_cat);
Change History (5)
Note: See
TracTickets for help on using
tickets.
I think get_term($link_cat, 'link_category') will work.