mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
git-svn-id: http://svn.automattic.com/wordpress/trunk@2235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3ec8c50289
commit
c4bc224fa9
@ -36,7 +36,7 @@ function return_categories_list( $parent = 0, $sortbyname = FALSE )
|
||||
}
|
||||
|
||||
// First query the database
|
||||
$cats_tmp = $wpdb->get_results("SELECT cat_id FROM $wpdb->categories WHERE category_parent = $parent ORDER BY $sort");
|
||||
$cats_tmp = $wpdb->get_results("SELECT cat_ID FROM $wpdb->categories WHERE category_parent = $parent ORDER BY $sort");
|
||||
|
||||
// Now strip this down to a simple array of IDs
|
||||
$cats = array();
|
||||
@ -44,7 +44,7 @@ function return_categories_list( $parent = 0, $sortbyname = FALSE )
|
||||
{
|
||||
foreach( $cats_tmp as $cat )
|
||||
{
|
||||
$cats[] = $cat->cat_id;
|
||||
$cats[] = $cat->cat_ID;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user