mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-31 04:31:35 +01:00
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
This commit is contained in:
parent
43bb491419
commit
cc83c30953
@ -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) {
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</opml>
|
||||
</opml>
|
||||
|
Loading…
Reference in New Issue
Block a user