Do not use deprecated argument in wp-links-opml.php. See #15195

git-svn-id: https://develop.svn.wordpress.org/trunk@15926 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-10-23 12:03:54 +00:00
parent 0658668634
commit 3ad33720e4
1 changed files with 2 additions and 2 deletions

View File

@ -36,9 +36,9 @@ echo '<?xml version="1.0"?'.">\n";
<body>
<?php
if ( empty($link_cat) )
$cats = get_categories(array('type' => 'link', 'hierarchical' => 0));
$cats = get_categories(array('taxonomy' => 'link_category', 'hierarchical' => 0));
else
$cats = get_categories(array('type' => 'link', 'hierarchical' => 0, 'include' => $link_cat));
$cats = get_categories(array('taxonomy' => 'link_category', 'hierarchical' => 0, 'include' => $link_cat));
foreach ( (array)$cats as $cat ) :
$catname = apply_filters('link_category', $cat->name);