category_name is not a valid arg. Use name__like. Props drdavid. fixes #6722 for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@8104 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-06-16 22:19:34 +00:00
parent 7c878c14ad
commit d69adece5a
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ function wp_list_bookmarks($args = '') {
if ( $categorize ) {
//Split the bookmarks into ul's for each category
$cats = get_terms('link_category', array('category_name' => $category_name, 'include' => $category, 'orderby' => $category_orderby, 'order' => $category_order, 'hierarchical' => 0));
$cats = get_terms('link_category', array('name__like' => $category_name, 'include' => $category, 'orderby' => $category_orderby, 'order' => $category_order, 'hierarchical' => 0));
foreach ( (array) $cats as $cat ) {
$params = array_merge($r, array('category'=>$cat->term_id));