Make WordPress Core

Changeset 61113


Ignore:
Timestamp:
11/02/2025 05:27:55 PM (10 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct the type for some method parameters in WP_REST_Server class.

Follow-up to [34928].

Props dilipbheda, mukesh27, kirasong, shailu25, khushdoms, welcher, audrasjb, SergeyBiryukov.
See #63249.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/class-wp-rest-server.php

    r60635 r61113  
    225225         * @since 4.4.0
    226226         *
    227          * @param string $code    WP_Error-style code.
    228          * @param string $message Human-readable message.
    229          * @param int    $status  Optional. HTTP status code to send. Default null.
     227         * @param string   $code    WP_Error-style code.
     228         * @param string   $message Human-readable message.
     229         * @param int|null $status  Optional. HTTP status code to send. Default null.
    230230         * @return string JSON representation of the error
    231231         */
     
    279279         * @global WP_User $current_user The currently authenticated user.
    280280         *
    281          * @param string $path Optional. The request route. If not set, `$_SERVER['PATH_INFO']` will be used.
    282          *                     Default null.
     281         * @param string|null $path Optional. The request route. If not set, `$_SERVER['PATH_INFO']` will be used.
     282         *                          Default null.
    283283         * @return null|false Null if not served and a HEAD request, false otherwise.
    284284         */
Note: See TracChangeset for help on using the changeset viewer.