# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: /var/www/GSoC/wordtrunk/wp-includes
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: class-wp-xmlrpc-server.php
--- class-wp-xmlrpc-server.php Base (BASE)
+++ class-wp-xmlrpc-server.php Locally Modified (Based On LOCAL)
@@ -64,6 +64,7 @@
 			'wp.getMediaItem'		=> 'this:wp_getMediaItem',
 			'wp.getMediaLibrary'	=> 'this:wp_getMediaLibrary',
 			'wp.getPostFormats'     => 'this:wp_getPostFormats',
+                        'wp.getTaxonomy'        => 'this:wp_getTaxonomy',
 
 			// Blogger API
 			'blogger.getUsersBlogs' => 'this:blogger_getUsersBlogs',
@@ -1702,6 +1703,57 @@
 		return $formats;
 	}
 
+        /**
+         * Retrieve a taxonomy
+         *
+         * @uses get_taxonomy()
+         * @param array $args Method parameters. Contains:
+         *  - int     $blog_id
+         *  - string  $username
+         *  - string  $password
+         *  - string  $taxonomy_name
+         * @return array contains:
+         *  - 'labels'
+         *  - 'cap'
+         *  - 'hierarchical'
+         *  - 'object_type'
+         */
+        function wp_getTaxonomy( $args ) {
+
+		$this->escape( $args );
+
+                $blog_ID        = (int) $args[0];
+                $username       = $args[1];
+                $password       = $args[2];
+                $taxonomy_name  = $args[3];
+
+		if ( ! $user = $this->login( $username, $password ) )
+			return $this->error;
+
+                $taxonomy_names = get_taxonomies('','names');
+
+                if( ! in_array( $taxonomy_name, $taxonomy_names ) )
+                        return new IXR_Error( 403, __( 'The taxonomy type specified is not valid' ) );
+
+                $taxonomy = get_taxonomy( $taxonomy_name );
+
+                //capability check
+                if( ! current_user_can( $taxonomy->cap->edit_terms ) )
+                        return new IXR_Error( 401, __( 'Sorry, You are not allowed to edit this post type' ) );
+
+                $taxonomy = (array)$taxonomy;
+
+                $taxonomy_type_data = array(
+                                'labels'            => $taxonomy['labels'],
+                                'cap'               => $taxonomy['cap'],
+                                'hierarchical'      => $taxonomy['hierarchical'],
+                                'object_type'       => $taxonomy['object_type'],
+                        );
+
+                return $taxonomy_type_data;
+
+        }
+        
 	/* Blogger API functions.
 	 * specs on http://plant.blogger.com/api and http://groups.yahoo.com/group/bloggerDev/
 	 */
