Opened 19 years ago
Closed 19 years ago
#5295 closed defect (bug) (fixed)
wp-links-opml.php will not display a single link category
| Reported by: | vrypan | Owned by: | westi |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5 |
| Component: | General | Version: | 2.3.1 |
| Severity: | major | Keywords: | opml |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I think get_term($link_cat, 'link_category') will work.