Don't show categories in getCategoryList. fixes #4114
git-svn-id: http://svn.automattic.com/wordpress/trunk@5215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9442a8806b
commit
8516de020f
|
@ -1526,7 +1526,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
$categories_struct = array();
|
$categories_struct = array();
|
||||||
|
|
||||||
// FIXME: can we avoid using direct SQL there?
|
// FIXME: can we avoid using direct SQL there?
|
||||||
if ($cats = $wpdb->get_results("SELECT cat_ID, cat_name FROM $wpdb->categories", ARRAY_A)) {
|
if ($cats = $wpdb->get_results("SELECT cat_ID, cat_name FROM $wpdb->categories WHERE (type & " . TAXONOMY_CATEGORY . " != 0)", ARRAY_A)) {
|
||||||
foreach ($cats as $cat) {
|
foreach ($cats as $cat) {
|
||||||
$struct['categoryId'] = $cat['cat_ID'];
|
$struct['categoryId'] = $cat['cat_ID'];
|
||||||
$struct['categoryName'] = $cat['cat_name'];
|
$struct['categoryName'] = $cat['cat_name'];
|
||||||
|
|
Loading…
Reference in New Issue