Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/wp-includes/class-wp-http-ixr-client.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@ public function __construct( $server, $path = false, $port = false, $timeout = 1
}

/**
* Sends an XML-RPC request.
*
* @since 3.1.0
* @since 5.5.0 Formalized the existing `...$args` parameter by adding it
* to the function signature.
*
* @param mixed ...$args The method name, followed by the arguments to pass to it.
* @return bool True if the request succeeded, false otherwise.
*/
public function query( ...$args ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ public function get_collection_params() {
*
* @since 6.5.0
*
* @return true|WP_Error True if the request has write access for the item, WP_Error object otherwise.
* @param WP_REST_Request $request Full details about the request.
* @return true|WP_Error True if the request has read access, WP_Error object otherwise.
*/
public function get_items_permissions_check( $request ) {
if ( current_user_can( 'edit_theme_options' ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ public function get_collection_params() {
*
* @since 6.5.0
*
* @param string $method Optional. HTTP method of the request. Default WP_REST_Server::CREATABLE.
* @return array Font family create/edit arguments.
*/
public function get_endpoint_args_for_item_schema( $method = WP_REST_Server::CREATABLE ) {
Expand Down
Loading