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:
parent
b56481f330
commit
408e467fd1
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue