Use correct variable. Caught by unit tests. see #20566.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
90e0f66bf1
commit
1627408d5a
|
@ -698,7 +698,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( in_array( 'taxonomies', $fields ) )
|
if ( in_array( 'taxonomies', $fields ) )
|
||||||
$_post_type['taxonomies'] = get_object_taxonomies( $_post_type->name, 'names' );
|
$_post_type['taxonomies'] = get_object_taxonomies( $post_type->name, 'names' );
|
||||||
|
|
||||||
return apply_filters( 'xmlrpc_prepare_post_type', $_post_type, $post_type );
|
return apply_filters( 'xmlrpc_prepare_post_type', $_post_type, $post_type );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue