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

git-svn-id: https://develop.svn.wordpress.org/trunk@8104 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-06-16 22:19:34 +00:00
parent b56481f330
commit 408e467fd1
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ function wp_list_bookmarks($args = '') {
if ( $categorize ) { if ( $categorize ) {
//Split the bookmarks into ul's for each category //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 ) { foreach ( (array) $cats as $cat ) {
$params = array_merge($r, array('category'=>$cat->term_id)); $params = array_merge($r, array('category'=>$cat->term_id));