From 1627408d5aac3cebd3b4d8897fe2b21feec8822a Mon Sep 17 00:00:00 2001 From: nacin Date: Sat, 28 Apr 2012 21:22:07 +0000 Subject: [PATCH] Use correct variable. Caught by unit tests. see #20566. git-svn-id: http://svn.automattic.com/wordpress/trunk@20635 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-xmlrpc-server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index fdc4d8ee40..d65de1a435 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -698,7 +698,7 @@ class wp_xmlrpc_server extends IXR_Server { } 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 ); }