/** * Retrieve all of the comment status. * * @since 2.7.0 * * @param array $args Method parameters. * @return array|IXR_Error */ public function wp_getCommentStatusList($args) { $this->escape($args); $username = $args[1]; $password = $args[2]; if (!($user = $this->login($username, $password))) { return $this->error; } if (!current_user_can('moderate_comments')) { 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.getCommentStatusList'); return get_comment_statuses(); }
/** * Retrieve all of the comment status. * * @since 2.7.0 * * @param array $args Method parameters. * @return array */ function wp_getCommentStatusList($args) { $this->escape($args); $blog_id = (int) $args[0]; $username = $args[1]; $password = $args[2]; if (!($user = $this->login($username, $password))) { return $this->error; } 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'); return get_comment_statuses(); }