Allow wp-links-opml.php to return the links for just one category. Fixes #5295 props vrypan.
git-svn-id: https://develop.svn.wordpress.org/trunk@6308 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
77838c2433
commit
8fc1807dc7
@ -26,7 +26,7 @@ if ((empty ($link_cat)) || ($link_cat == 'all') || ($link_cat == '0')) {
|
|||||||
if (empty ($link_cat))
|
if (empty ($link_cat))
|
||||||
$cats = get_categories("type=link&hierarchical=0");
|
$cats = get_categories("type=link&hierarchical=0");
|
||||||
else
|
else
|
||||||
$cats = array (get_category($link_cat));
|
$cats = get_categories('type=link&hierarchical=0&include='.$link_cat);
|
||||||
|
|
||||||
foreach ((array) $cats as $cat) {
|
foreach ((array) $cats as $cat) {
|
||||||
$catname = apply_filters('link_category', $cat->name);
|
$catname = apply_filters('link_category', $cat->name);
|
||||||
|
Loading…
Reference in New Issue
Block a user