# 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.getTaxonomies'      => 'this:wp_getTaxonomies',
 
 			// Blogger API
 			'blogger.getUsersBlogs' => 'this:blogger_getUsersBlogs',
@@ -1702,6 +1703,55 @@
 		return $formats;
 	}
 
+        /**
+         * Retrieve taxonomies
+         *
+         * @uses get_taxonomies()
+         * @param array $args Method parameters. Contains:
+         *  - int     $blog_id
+         *  - string  $username
+         *  - string  $password
+         * @return array taxonomies
+         */
+        function wp_getTaxonomies($args) {
+
+		$this->escape( $args );
+
+                $blog_ID            = (int) $args[0];
+                $username           = $args[1];
+                $password           = $args[2];
+
+		if ( ! $user = $this->login( $username, $password ) )
+			return $this->error;
+
+                $taxonomies = get_taxonomies('','objects');
+
+                // holds all the taxonomy data
+                $struct = array();
+
+                foreach( $taxonomies as $taxonomy ) {
+
+                        // capability check for post_types
+                        if( ! current_user_can( $taxonomy->cap->edit_terms ) )
+                                continue;
+
+                        $taxonomy = (array)$taxonomy;
+
+                        $taxonomy_data = array(
+                                'labels'            => $taxonomy['labels'],
+                                'cap'               => $taxonomy['cap'],
+                                'hierarchical'      => $taxonomy['hierarchical'],
+                                'object_type'       => $taxonomy['object_type'],
+                        );
+
+                        $struct[ $taxonomy['name'] ] =  $taxonomy_data;
+
+                }
+
+                return $struct;
+
+        }
+
 	/* Blogger API functions.
 	 * specs on http://plant.blogger.com/api and http://groups.yahoo.com/group/bloggerDev/
 	 */
