Make WordPress Core

Changeset 64014


Ignore:
Timestamp:
09/30/2026 10:17:53 AM (11 days ago)
Author:
SergeyBiryukov
Message:

Docs: Adds missing documentation for three parameters in core classes.

Applies to:

  • The $args parameter in WP_HTTP_IXR_Client::query().
  • The $request parameter in WP_REST_Font_Collections_Controller::get_items_permissions_check().
  • The $method parameter in WP_REST_Font_Families_Controller::get_endpoint_args_for_item_schema().

Developed in ​https://github.com/WordPress/wordpress-develop/pull/12823.

Follow-up to r48238, r57548.

Props bejignesh, Soean, mukesh27, SergeyBiryukov.
See #65860.

Location:
trunk/src/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-http-ixr-client.php

    r63927 r64014  
    4848
    4949        /**
     50         * Makes an XML-RPC request and retrieves the response.
     51         *
    5052         * @since 3.1.0
    5153         * @since 5.5.0 Formalized the existing `...$args` parameter by adding it
    5254         *              to the function signature.
    5355         *
     56         * @param mixed ...$args The method name, followed by the arguments to pass to it.
    5457         * @return bool True if the request succeeded, false otherwise.
    5558         */
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-font-collections-controller.php

    r61668 r64014  
    336336         * @since 6.5.0
    337337         *
    338          * @return true|WP_Error True if the request has write access for the item, WP_Error object otherwise.
     338         * @param WP_REST_Request $request Full details about the request.
     339         * @return true|WP_Error True if the request has read access, WP_Error object otherwise.
    339340         */
    340341        public function get_items_permissions_check( $request ) {
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-font-families-controller.php

    r63790 r64014  
    428428         * @since 6.5.0
    429429         *
     430         * @param string $method Optional. HTTP method of the request. Default WP_REST_Server::CREATABLE.
    430431         * @return array Font family create/edit arguments.
    431432         */
Note: See TracChangeset for help on using the changeset viewer.