mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-01 00:27:38 +02:00
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:
parent
7c878c14ad
commit
d69adece5a
@ -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
Block a user