[wp-trac] [WordPress Trac] #5295: wp-links-opml.php will not
display a single link category
WordPress Trac
wp-trac at lists.automattic.com
Wed Oct 31 16:49:42 GMT 2007
#5295: wp-links-opml.php will not display a single link category
---------------------+------------------------------------------------------
Reporter: vrypan | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.3.2
Component: General | Version:
Severity: major | Keywords: opml
---------------------+------------------------------------------------------
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);
--
Ticket URL: <http://trac.wordpress.org/ticket/5295>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list