From a6b1be42b4c538a6cd48ad6b3dc79a424702ce7a Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 1 May 2012 20:33:06 +0000 Subject: [PATCH] Fix copy-paste issues in XML-RPC's _prepare_taxonomy(). see #20566. git-svn-id: http://svn.automattic.com/wordpress/trunk@20670 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-xmlrpc-server.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 15b27b85f6..3a0134e9cc 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -519,7 +519,7 @@ class wp_xmlrpc_server extends IXR_Server { */ protected function _prepare_taxonomy( $taxonomy, $fields ) { $_taxonomy = array( - 'name' => $taxonmy->name, + 'name' => $taxonomy->name, 'label' => $taxonomy->label, 'hierarchical' => (bool) $taxonomy->hierarchical, 'public' => (bool) $taxonomy->public, @@ -531,7 +531,7 @@ class wp_xmlrpc_server extends IXR_Server { $_taxonomy['labels'] = (array) $taxonomy->labels; if ( in_array( 'capabilities', $fields ) ) - $_taxonomy['cap'] = (array) $post_type->cap; + $_taxonomy['cap'] = (array) $taxonomy->cap; if ( in_array( 'object_types', $fields ) ) $_taxonomy['taxonomies'] = array_unique( (array) $taxonomy->object_type );