# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- Base (BASE)
+++ Locally Modified (Based On LOCAL)
@@ -46,6 +46,7 @@
 			'wp.getCategories'		=> 'this:mw_getCategories',		// Alias
 			'wp.getTags'			=> 'this:wp_getTags',
 			'wp.newCategory'		=> 'this:wp_newCategory',
+                        'wp.editCategory'               => 'this:wp_editCategory',
 			'wp.deleteCategory'		=> 'this:wp_deleteCategory',
 			'wp.suggestCategories'	=> 'this:wp_suggestCategories',
 			'wp.uploadFile'			=> 'this:mw_newMediaObject',	// Alias
@@ -892,6 +893,61 @@
 	}
 
 	/**
+	 * Edit a category.
+	 *
+	 * @since 3.2.0
+	 *
+	 * @param array $args Method parameters.
+	 * @return bool True on success.
+	 */
+	function wp_editCategory($args) {
+		$this->escape($args);
+
+		$blog_id                        = (int) $args[0];
+		$username                       = $args[1];
+		$password			= $args[2];
+		$cat_ID                         = $args[3];
+                $category_struct                = $args[4];
+
+		if ( !$user = $this->login($username, $password) )
+			return $this->error;
+
+		// Make sure the user is allowed to edit a category.
+		if ( !current_user_can("manage_categories") )
+                        return(new IXR_Error(401, __("Sorry, you do not have the right to edit a category.")));
+
+                do_action('xmlrpc_call', 'wp.editCategory');
+
+
+                if ( isset($category_struct["name"]) )
+			$cat_name = $category_struct["name"];
+
+                if ( isset($category_struct["description"]) )
+			$category_description = $category_struct["description"];
+
+		if ( isset($content_struct["parent_id"]) )
+			$category_parent = $content_struct["parent_id"];
+
+		if ( isset($content_struct["slug"]) )
+			$category_nicename = $content_struct["slug"];		
+
+		// We've got all the data
+		$category = compact('cat_ID', 'cat_name', 'category_description', 'category_parent', 'category_nicename');
+
+		$result = wp_update_category($category);
+
+                return $result;
+
+		if ( is_wp_error( $result ) )
+			return new IXR_Error(500, $result->get_error_message());
+
+		if ( !$result )
+			return new IXR_Error(500, __('Sorry, the category could not be edited. Something wrong happened.'));
+
+		return true;
+	}
+
+        /**
\ No newline at end of file
 	 * Remove category.
 	 *
 	 * @since 2.5.0
