Index: src/wp-includes/class-wp-xmlrpc-server.php
===================================================================
--- src/wp-includes/class-wp-xmlrpc-server.php	(revision 27694)
+++ src/wp-includes/class-wp-xmlrpc-server.php	(working copy)
@@ -127,7 +127,17 @@
 		);
 
 		$this->initialise_blog_option_info();
-		$this->methods = apply_filters('xmlrpc_methods', $this->methods);
+
+		/**
+		 * Filter the methods exposed by the XML-RPC server.
+		 *
+		 * This filter can be used to add new methods, and remove built-in methods.
+		 *
+		 * @since 1.5.0
+		 *
+		 * @param object $methods An array of methods.
+		 */
+		$this->methods = apply_filters( 'xmlrpc_methods', $this->methods );
 	}
 
 	function serve_request() {
@@ -171,11 +181,37 @@
 	 */
 	function login( $username, $password ) {
 		// Respect any old filters against get_option() for 'enable_xmlrpc'.
+
+		/**
+		 * Filter
+		 *
+		 * @since 3.5.0
+		 * @deprecated 3.5.0 Use xmlrpc_enabled instead.
+		 *
+		 * @param
+		 */
 		$enabled = apply_filters( 'pre_option_enable_xmlrpc', false ); // Deprecated
 		if ( false === $enabled )
+
+			/**
+			 * Filter
+			 *
+			 * @since 3.5.0
+			 * @deprecated 3.5.0 Use xmlrpc_enabled instead.
+			 *
+			 * @param
+			 */
 			$enabled = apply_filters( 'option_enable_xmlrpc', true ); // Deprecated
 
-		// Proper filter for turning off XML-RPC. It is on by default.
+		/**
+		 * Filter whether XML-RPC is enabled.
+		 *
+		 * This is the proper filter for turning off XML-RPC.
+		 *
+		 * @since 3.5.0
+		 *
+		 * @param bool $enabled Whether XML-RPC is enabled. Default on.
+		 */
 		$enabled = apply_filters( 'xmlrpc_enabled', $enabled );
 
 		if ( ! $enabled ) {
@@ -187,6 +223,15 @@
 
 		if (is_wp_error($user)) {
 			$this->error = new IXR_Error( 403, __( 'Incorrect username or password.' ) );
+
+			/**
+			 * Filter the user login error message.
+			 *
+			 * @since 3.5.0
+			 *
+			 * @param string  $error The error message.
+			 * @param WP_User $user  WP_User object.
+			 */
 			$this->error = apply_filters( 'xmlrpc_login_error', $this->error, $user );
 			return false;
 		}
@@ -441,6 +486,13 @@
 			)
 		);
 
+		/**
+		 * Filter the blog options property.
+		 *
+		 * @since 2.6.0
+		 *
+		 * @param array $blog_options An array of blog options.
+		 */
 		$this->blog_options = apply_filters( 'xmlrpc_blog_options', $this->blog_options );
 	}
 
@@ -474,6 +526,17 @@
 		if ( !$user = $this->login($username, $password) )
 			return $this->error;
 
+		/**
+		 * Fires after the user has been authenticated but before the rest of
+		 * the method logic begins.
+		 *
+		 * All built-in XML-RPC methods use the action xmlrpc_call, with a parameter
+		 * equal to the method's name, e.g., wp.getUsersBlogs, wp.newPost, etc.
+		 *
+		 * @since 2.5.0
+		 *
+		 * @param method $name The method name.
+		 */
 		do_action( 'xmlrpc_call', 'wp.getUsersBlogs' );
 
 		$blogs = (array) get_blogs_of_user( $user->ID );
@@ -972,6 +1035,7 @@
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.newPost' );
 
 		unset( $content_struct['ID'] );
@@ -1258,6 +1322,7 @@
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.editPost' );
 
 		$post = get_post( $post_id, ARRAY_A );
@@ -1319,6 +1384,7 @@
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.deletePost' );
 
 		$post = get_post( $post_id, ARRAY_A );
@@ -1394,11 +1460,22 @@
 		if ( isset( $args[4] ) )
 			$fields = $args[4];
 		else
+
+			/**
+			 * Filter the conceptual groups used to retrieve a post.
+			 *
+			 * @since 3.4.0
+			 *
+			 * @param array $fields An array of conceptual groups. Default 'post',
+			 *                      'terms', 'custom_fields'.
+			 * @param string $method The method used to retrieve the post fields.
+			 */
 			$fields = apply_filters( 'xmlrpc_default_post_fields', array( 'post', 'terms', 'custom_fields' ), 'wp.getPost' );
 
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.getPost' );
 
 		$post = get_post( $post_id, ARRAY_A );
@@ -1450,11 +1527,13 @@
 		if ( isset( $args[4] ) )
 			$fields = $args[4];
 		else
+			/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 			$fields = apply_filters( 'xmlrpc_default_post_fields', array( 'post', 'terms', 'custom_fields' ), 'wp.getPosts' );
 
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.getPosts' );
 
 		$query = array();
@@ -1544,6 +1623,7 @@
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.newTerm' );
 
 		if ( ! taxonomy_exists( $content_struct['taxonomy'] ) )
@@ -1632,6 +1712,7 @@
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.editTerm' );
 
 		if ( ! taxonomy_exists( $content_struct['taxonomy'] ) )
@@ -1724,6 +1805,7 @@
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.deleteTerm' );
 
 		if ( ! taxonomy_exists( $taxonomy ) )
@@ -1791,6 +1873,7 @@
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.getTerm' );
 
 		if ( ! taxonomy_exists( $taxonomy ) )
@@ -1844,6 +1927,7 @@
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.getTerms' );
 
 		if ( ! taxonomy_exists( $taxonomy ) )
@@ -1923,6 +2007,7 @@
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.getTaxonomy' );
 
 		if ( ! taxonomy_exists( $taxonomy ) )
@@ -1962,11 +2047,13 @@
 		if ( isset( $args[4] ) )
 			$fields = $args[4];
 		else
+			/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 			$fields = apply_filters( 'xmlrpc_default_taxonomy_fields', array( 'labels', 'cap', 'object_type' ), 'wp.getTaxonomies' );
 
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.getTaxonomies' );
 
 		$taxonomies = get_taxonomies( $filter, 'objects' );
@@ -2036,6 +2123,7 @@
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.getUser' );
 
 		if ( ! current_user_can( 'edit_user', $user_id ) )
@@ -2084,11 +2172,13 @@
 		if ( isset( $args[4] ) )
 			$fields = $args[4];
 		else
+			/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 			$fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getUsers' );
 
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.getUsers' );
 
 		if ( ! current_user_can( 'list_users' ) )
@@ -2151,11 +2241,13 @@
 		if ( isset( $args[3] ) )
 			$fields = $args[3];
 		else
+			/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 			$fields = apply_filters( 'xmlrpc_default_user_fields', array( 'all' ), 'wp.getProfile' );
 
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.getProfile' );
 
 		if ( ! current_user_can( 'edit_user', $user->ID ) )
@@ -2199,6 +2291,7 @@
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.editProfile' );
 
 		if ( ! current_user_can( 'edit_user', $user->ID ) )
@@ -2272,7 +2365,8 @@
 		if ( !current_user_can( 'edit_page', $page_id ) )
 			return new IXR_Error( 401, __( 'Sorry, you cannot edit this page.' ) );
 
-		do_action('xmlrpc_call', 'wp.getPage');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.getPage' );
 
 		// If we found the page then format the data.
 		if ( $page->ID && ($page->post_type == 'page') ) {
@@ -2310,7 +2404,8 @@
 		if ( !current_user_can( 'edit_pages' ) )
 			return new IXR_Error( 401, __( 'Sorry, you cannot edit pages.' ) );
 
-		do_action('xmlrpc_call', 'wp.getPages');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.getPages' );
 
 		$pages = get_posts( array('post_type' => 'page', 'post_status' => 'any', 'numberposts' => $num_pages) );
 		$num_pages = count($pages);
@@ -2350,7 +2445,8 @@
 		if ( !$user = $this->login($username, $password) )
 			return $this->error;
 
-		do_action('xmlrpc_call', 'wp.newPage');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.newPage' );
 
 		// Mark this as content for a page.
 		$args[3]["post_type"] = 'page';
@@ -2378,7 +2474,8 @@
 		if ( !$user = $this->login($username, $password) )
 			return $this->error;
 
-		do_action('xmlrpc_call', 'wp.deletePage');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.deletePage' );
 
 		// Get the current page based on the page_id and
 		// make sure it is a page and not a post.
@@ -2420,7 +2517,8 @@
 		if ( !$user = $this->login($username, $password) )
 			return $this->error;
 
-		do_action('xmlrpc_call', 'wp.editPage');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.editPage' );
 
 		// Get the page data and make sure it is a page.
 		$actual_page = get_post($page_id, ARRAY_A);
@@ -2470,7 +2568,8 @@
 		if ( !current_user_can( 'edit_pages' ) )
 			return new IXR_Error( 401, __( 'Sorry, you cannot edit pages.' ) );
 
-		do_action('xmlrpc_call', 'wp.getPageList');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.getPageList' );
 
 		// Get list of pages ids and titles
 		$page_list = $wpdb->get_results("
@@ -2521,7 +2620,8 @@
 		if ( !current_user_can('edit_posts') )
 			return(new IXR_Error(401, __('Sorry, you cannot edit posts on this site.')));
 
-		do_action('xmlrpc_call', 'wp.getAuthors');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.getAuthors' );
 
 		$authors = array();
 		foreach ( get_users( array( 'fields' => array('ID','user_login','display_name') ) ) as $user ) {
@@ -2556,6 +2656,7 @@
 		if ( !current_user_can( 'edit_posts' ) )
 			return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this site in order to view tags.' ) );
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.getKeywords' );
 
 		$tags = array();
@@ -2595,7 +2696,8 @@
 		if ( !$user = $this->login($username, $password) )
 			return $this->error;
 
-		do_action('xmlrpc_call', 'wp.newCategory');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.newCategory' );
 
 		// Make sure the user is allowed to add a category.
 		if ( !current_user_can('manage_categories') )
@@ -2656,7 +2758,8 @@
 		if ( !$user = $this->login($username, $password) )
 			return $this->error;
 
-		do_action('xmlrpc_call', 'wp.deleteCategory');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.deleteCategory' );
 
 		if ( !current_user_can('manage_categories') )
 			return new IXR_Error( 401, __( 'Sorry, you do not have the right to delete a category.' ) );
@@ -2692,7 +2795,8 @@
 		if ( !current_user_can( 'edit_posts' ) )
 			return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts to this site in order to view categories.' ) );
 
-		do_action('xmlrpc_call', 'wp.suggestCategories');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.suggestCategories' );
 
 		$category_suggestions = array();
 		$args = array('get' => 'all', 'number' => $max_results, 'name__like' => $category);
@@ -2728,7 +2832,8 @@
 		if ( !current_user_can( 'moderate_comments' ) )
 			return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) );
 
-		do_action('xmlrpc_call', 'wp.getComment');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.getComment' );
 
 		if ( ! $comment = get_comment($comment_id) )
 			return new IXR_Error( 404, __( 'Invalid comment ID.' ) );
@@ -2769,7 +2874,8 @@
 		if ( !current_user_can( 'moderate_comments' ) )
 			return new IXR_Error( 401, __( 'Sorry, you cannot edit comments.' ) );
 
-		do_action('xmlrpc_call', 'wp.getComments');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.getComments' );
 
 		if ( isset($struct['status']) )
 			$status = $struct['status'];
@@ -2835,7 +2941,8 @@
 		if ( !current_user_can( 'edit_comment', $comment_ID ) )
 			return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) );
 
-		do_action('xmlrpc_call', 'wp.deleteComment');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.deleteComment' );
 
 		$status = wp_delete_comment( $comment_ID );
 
@@ -2890,7 +2997,8 @@
 		if ( !current_user_can( 'edit_comment', $comment_ID ) )
 			return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) );
 
-		do_action('xmlrpc_call', 'wp.editComment');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.editComment' );
 
 		if ( isset($content_struct['status']) ) {
 			$statuses = get_comment_statuses();
@@ -2955,7 +3063,7 @@
 		$post		= $args[3];
 		$content_struct = $args[4];
 
-		$allow_anon = apply_filters('xmlrpc_allow_anonymous_comments', false);
+		$allow_anon = apply_filters( 'xmlrpc_allow_anonymous_comments', false );
 
 		$user = $this->login($username, $password);
 
@@ -3014,7 +3122,8 @@
 
 		$comment['comment_content'] =  isset($content_struct['content']) ? $content_struct['content'] : null;
 
-		do_action('xmlrpc_call', 'wp.newComment');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.newComment' );
 
 		$comment_ID = wp_new_comment( $comment );
 
@@ -3044,7 +3153,8 @@
 		if ( !current_user_can( 'moderate_comments' ) )
 			return new IXR_Error( 403, __( 'You are not allowed access to details about this site.' ) );
 
-		do_action('xmlrpc_call', 'wp.getCommentStatusList');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.getCommentStatusList' );
 
 		return get_comment_statuses();
 	}
@@ -3071,7 +3181,8 @@
 		if ( !current_user_can( 'edit_posts' ) )
 			return new IXR_Error( 403, __( 'You are not allowed access to details about comments.' ) );
 
-		do_action('xmlrpc_call', 'wp.getCommentCount');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.getCommentCount' );
 
 		$count = wp_count_comments( $post_id );
 		return array(
@@ -3103,7 +3214,8 @@
 		if ( !current_user_can( 'edit_posts' ) )
 			return new IXR_Error( 403, __( 'You are not allowed access to details about this site.' ) );
 
-		do_action('xmlrpc_call', 'wp.getPostStatusList');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.getPostStatusList' );
 
 		return get_post_statuses();
 	}
@@ -3129,7 +3241,8 @@
 		if ( !current_user_can( 'edit_pages' ) )
 			return new IXR_Error( 403, __( 'You are not allowed access to details about this site.' ) );
 
-		do_action('xmlrpc_call', 'wp.getPageStatusList');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.getPageStatusList' );
 
 		return get_page_statuses();
 	}
@@ -3286,7 +3399,8 @@
 		if ( !current_user_can( 'upload_files' ) )
 			return new IXR_Error( 403, __( 'You do not have permission to upload files.' ) );
 
-		do_action('xmlrpc_call', 'wp.getMediaItem');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.getMediaItem' );
 
 		if ( ! $attachment = get_post($attachment_id) )
 			return new IXR_Error( 404, __( 'Invalid attachment ID.' ) );
@@ -3331,7 +3445,8 @@
 		if ( !current_user_can( 'upload_files' ) )
 			return new IXR_Error( 401, __( 'You do not have permission to upload files.' ) );
 
-		do_action('xmlrpc_call', 'wp.getMediaLibrary');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'wp.getMediaLibrary' );
 
 		$parent_id = ( isset($struct['parent_id']) ) ? absint($struct['parent_id']) : '' ;
 		$mime_type = ( isset($struct['mime_type']) ) ? $struct['mime_type'] : '' ;
@@ -3372,6 +3487,7 @@
 		if ( !current_user_can( 'edit_posts' ) )
 			return new IXR_Error( 403, __( 'You are not allowed access to details about this site.' ) );
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.getPostFormats' );
 
 		$formats = get_post_format_strings();
@@ -3435,6 +3551,7 @@
 		if ( !$user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.getPostType' );
 
 		if( ! post_type_exists( $post_type_name ) )
@@ -3476,11 +3593,13 @@
 		if ( isset( $args[4] ) )
 			$fields = $args[4];
 		else
+			/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 			$fields = apply_filters( 'xmlrpc_default_posttype_fields', array( 'labels', 'cap', 'taxonomies' ), 'wp.getPostTypes' );
 
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.getPostTypes' );
 
 		$post_types = get_post_types( $filter, 'objects' );
@@ -3535,6 +3654,7 @@
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.getRevisions' );
 
 		if ( ! $post = get_post( $post_id ) )
@@ -3596,6 +3716,7 @@
 		if ( ! $user = $this->login( $username, $password ) )
 			return $this->error;
 
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
 		do_action( 'xmlrpc_call', 'wp.restoreRevision' );
 
 		if ( ! $revision = wp_get_post_revision( $revision_id ) )
@@ -3645,7 +3766,8 @@
 		if ( !$user = $this->login($username, $password) )
 			return $this->error;
 
-		do_action('xmlrpc_call', 'blogger.getUsersBlogs');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'blogger.getUsersBlogs' );
 
 		$is_admin = current_user_can('manage_options');
 
@@ -3712,7 +3834,8 @@
 		if ( !current_user_can( 'edit_posts' ) )
 			return new IXR_Error( 401, __( 'Sorry, you do not have access to user data on this site.' ) );
 
-		do_action('xmlrpc_call', 'blogger.getUserInfo');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'blogger.getUserInfo' );
 
 		$struct = array(
 			'nickname'  => $user->nickname,
@@ -3751,7 +3874,8 @@
 		if ( !current_user_can( 'edit_post', $post_ID ) )
 			return new IXR_Error( 401, __( 'Sorry, you cannot edit this post.' ) );
 
-		do_action('xmlrpc_call', 'blogger.getPost');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'blogger.getPost' );
 
 		$categories = implode(',', wp_get_post_categories($post_ID));
 
@@ -3796,7 +3920,8 @@
 		if ( ! current_user_can( 'edit_posts' ) )
 			return new IXR_Error( 401, __( 'Sorry, you cannot edit posts on this site.' ) );
 
-		do_action('xmlrpc_call', 'blogger.getRecentPosts');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'blogger.getRecentPosts' );
 
 		$posts_list = wp_get_recent_posts( $query );
 
@@ -3874,7 +3999,8 @@
 		if ( !$user = $this->login($username, $password) )
 			return $this->error;
 
-		do_action('xmlrpc_call', 'blogger.newPost');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'blogger.newPost' );
 
 		$cap = ($publish) ? 'publish_posts' : 'edit_posts';
 		if ( ! current_user_can( get_post_type_object( 'post' )->cap->create_posts ) || !current_user_can($cap) )
@@ -3928,7 +4054,8 @@
 		if ( !$user = $this->login($username, $password) )
 			return $this->error;
 
-		do_action('xmlrpc_call', 'blogger.editPost');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'blogger.editPost' );
 
 		$actual_post = get_post($post_ID,ARRAY_A);
 
@@ -3982,7 +4109,8 @@
 		if ( !$user = $this->login($username, $password) )
 			return $this->error;
 
-		do_action('xmlrpc_call', 'blogger.deletePost');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'blogger.deletePost' );
 
 		$actual_post = get_post($post_ID,ARRAY_A);
 
@@ -4053,7 +4181,8 @@
 		if ( !$user = $this->login($username, $password) )
 			return $this->error;
 
-		do_action('xmlrpc_call', 'metaWeblog.newPost');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'metaWeblog.newPost' );
 
 		$page_template = '';
 		if ( !empty( $content_struct['post_type'] ) ) {
@@ -4372,7 +4501,8 @@
 		if ( ! $user = $this->login($username, $password) )
 			return $this->error;
 
-		do_action('xmlrpc_call', 'metaWeblog.editPost');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'metaWeblog.editPost' );
 
 		$postdata = get_post( $post_ID, ARRAY_A );
 
@@ -4646,7 +4776,8 @@
 		if ( !current_user_can( 'edit_post', $post_ID ) )
 			return new IXR_Error( 401, __( 'Sorry, you cannot edit this post.' ) );
 
-		do_action('xmlrpc_call', 'metaWeblog.getPost');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'metaWeblog.getPost' );
 
 		if ($postdata['post_date'] != '') {
 			$post_date = $this->_convert_date( $postdata['post_date'] );
@@ -4770,7 +4901,8 @@
 		if ( ! current_user_can( 'edit_posts' ) )
 			return new IXR_Error( 401, __( 'Sorry, you cannot edit posts on this site.' ) );
 
-		do_action('xmlrpc_call', 'metaWeblog.getRecentPosts');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'metaWeblog.getRecentPosts' );
 
 		$posts_list = wp_get_recent_posts( $query );
 
@@ -4885,7 +5017,8 @@
 		if ( !current_user_can( 'edit_posts' ) )
 			return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this site in order to view categories.' ) );
 
-		do_action('xmlrpc_call', 'metaWeblog.getCategories');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'metaWeblog.getCategories' );
 
 		$categories_struct = array();
 
@@ -4933,7 +5066,8 @@
 		if ( !$user = $this->login($username, $password) )
 			return $this->error;
 
-		do_action('xmlrpc_call', 'metaWeblog.newMediaObject');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'metaWeblog.newMediaObject' );
 
 		if ( !current_user_can('upload_files') ) {
 			$this->error = new IXR_Error( 401, __( 'You do not have permission to upload files.' ) );
@@ -5027,7 +5161,8 @@
 		if ( !$user = $this->login($username, $password) )
 			return $this->error;
 
-		do_action('xmlrpc_call', 'mt.getRecentPostTitles');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'mt.getRecentPostTitles' );
 
 		$posts_list = wp_get_recent_posts( $query );
 
@@ -5086,7 +5221,8 @@
 		if ( !current_user_can( 'edit_posts' ) )
 			return new IXR_Error( 401, __( 'Sorry, you must be able to edit posts on this site in order to view categories.' ) );
 
-		do_action('xmlrpc_call', 'mt.getCategoryList');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'mt.getCategoryList' );
 
 		$categories_struct = array();
 
@@ -5127,7 +5263,8 @@
 		if ( !current_user_can( 'edit_post', $post_ID ) )
 			return new IXR_Error( 401, __( 'Sorry, you can not edit this post.' ) );
 
-		do_action('xmlrpc_call', 'mt.getPostCategories');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'mt.getPostCategories' );
 
 		$categories = array();
 		$catids = wp_get_post_categories(intval($post_ID));
@@ -5165,7 +5302,8 @@
 		if ( !$user = $this->login($username, $password) )
 			return $this->error;
 
-		do_action('xmlrpc_call', 'mt.setPostCategories');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'mt.setPostCategories' );
 
 		if ( ! get_post( $post_ID ) )
 			return new IXR_Error( 404, __( 'Invalid post ID.' ) );
@@ -5193,7 +5331,8 @@
 	 */
 	function mt_supportedMethods($args) {
 
-		do_action('xmlrpc_call', 'mt.supportedMethods');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'mt.supportedMethods' );
 
 		$supported_methods = array();
 		foreach ( $this->methods as $key => $value ) {
@@ -5211,8 +5350,10 @@
 	 * @param array $args Method parameters.
 	 */
 	function mt_supportedTextFilters($args) {
-		do_action('xmlrpc_call', 'mt.supportedTextFilters');
-		return apply_filters('xmlrpc_text_filters', array());
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'mt.supportedTextFilters' );
+
+		return apply_filters( 'xmlrpc_text_filters', array() );
 	}
 
 	/**
@@ -5229,7 +5370,8 @@
 
 		$post_ID = intval($args);
 
-		do_action('xmlrpc_call', 'mt.getTrackbackPings');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'mt.getTrackbackPings' );
 
 		$actual_post = get_post($post_ID, ARRAY_A);
 
@@ -5276,7 +5418,8 @@
 		if ( !$user = $this->login($username, $password) )
 			return $this->error;
 
-		do_action('xmlrpc_call', 'mt.publishPost');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'mt.publishPost' );
 
 		$postdata = get_post($post_ID, ARRAY_A);
 		if ( ! $postdata )
@@ -5312,7 +5455,8 @@
 	function pingback_ping($args) {
 		global $wpdb;
 
-		do_action('xmlrpc_call', 'pingback.ping');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'pingback.ping' );
 
 		$this->escape($args);
 
@@ -5325,6 +5469,14 @@
 		$pagelinkedto = str_replace('&amp;', '&', $pagelinkedto);
 		$pagelinkedto = str_replace('&', '&amp;', $pagelinkedto);
 
+		/**
+		 * Filter the pingback source URI.
+		 *
+		 * @since 3.6.0
+		 *
+		 * @param string $pagelinkedfrom The URI of the page linked from.
+		 * @param string $pagelinkedto   The URI of the page linked to.
+		 */
 		$pagelinkedfrom = apply_filters( 'pingback_ping_source_uri', $pagelinkedfrom, $pagelinkedto );
 		if ( ! $pagelinkedfrom )
 			return $this->pingback_error( 0, __( 'A valid URL was not provided.' ) );
@@ -5406,7 +5558,7 @@
 		if ( !$linea )
 	  		return $this->pingback_error( 16, __( 'The source URL does not exist.' ) );
 
-		$linea = apply_filters('pre_remote_source', $linea, $pagelinkedto);
+		$linea = apply_filters( 'pre_remote_source', $linea, $pagelinkedto );
 
 		// Work around bug in strip_tags():
 		$linea = str_replace('<!DOC', '<DOC', $linea);
@@ -5471,7 +5623,7 @@
 		$commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_url', 'comment_author_email', 'comment_content', 'comment_type');
 
 		$comment_ID = wp_new_comment($commentdata);
-		do_action('pingback_post', $comment_ID);
+		do_action( 'pingback_post', $comment_ID );
 
 		return sprintf(__('Pingback from %1$s to %2$s registered. Keep the web talking! :-)'), $pagelinkedfrom, $pagelinkedto);
 	}
@@ -5490,7 +5642,8 @@
 
 		global $wpdb;
 
-		do_action('xmlrpc_call', 'pingback.extensions.getPingbacks');
+		/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
+		do_action( 'xmlrpc_call', 'pingback.extensions.getPingbacks' );
 
 		$this->escape($args);
 
