From cc83c309530b978cd98b9e88a43ba8d2b3f4cdbf Mon Sep 17 00:00:00 2001 From: westi Date: Sat, 3 Nov 2007 16:09:30 +0000 Subject: [PATCH] Allow wp-links-opml.php to return the links for just one category. Fixes #5295 props vrypan. git-svn-id: http://svn.automattic.com/wordpress/trunk@6308 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-links-opml.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-links-opml.php b/wp-links-opml.php index 3adaba974..dfa3a44e1 100644 --- a/wp-links-opml.php +++ b/wp-links-opml.php @@ -26,7 +26,7 @@ if ((empty ($link_cat)) || ($link_cat == 'all') || ($link_cat == '0')) { if (empty ($link_cat)) $cats = get_categories("type=link&hierarchical=0"); else - $cats = array (get_category($link_cat)); + $cats = get_categories('type=link&hierarchical=0&include='.$link_cat); foreach ((array) $cats as $cat) { $catname = apply_filters('link_category', $cat->name); @@ -50,4 +50,4 @@ foreach ((array) $cats as $cat) { } ?> - \ No newline at end of file +