Ticket #5295 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

wp-links-opml.php will not display a single link category

Reported by: vrypan Assigned to: westi
Priority: normal Milestone: 2.5
Component: General Version: 2.3.1
Severity: major Keywords: opml
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

(follow-up: ↓ 4 ) 10/31/07 17:28:33 changed by ryan

I think get_term($link_cat, 'link_category') will work.

10/31/07 17:45:46 changed by foolswisdom

  • version set to 2.3.1.

11/02/07 10:17:17 changed by westi

  • owner changed from anonymous to westi.
  • status changed from new to assigned.

(in reply to: ↑ 1 ) 11/03/07 16:07:17 changed by westi

  • milestone changed from 2.3.2 to 2.4.

Replying to ryan:

I think get_term($link_cat, 'link_category') will work.

That doesn't work with the current code.

The suggest change in the ticket does though.

11/03/07 16:09:31 changed by westi

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [6308]) Allow wp-links-opml.php to return the links for just one category. Fixes #5295 props vrypan.