Make WordPress Core


Ignore:
Timestamp:
07/10/2024 11:10:44 AM (5 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct @return values for a few REST API class methods.

Includes listing the expected type first, instead of WP_Error.

Follow-up to [39031], [39033], [46696], [49927], [49929], [50993], [51286], [51973], [52079], [52286], [53152], [56415].

Props antonvlasenko.
See #61593.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-edit-site-export-controller.php

    r53402 r58704  
    5151     * @since 5.9.0
    5252     *
    53      * @return WP_Error|true True if the request has access, or WP_Error object.
     53     * @return true|WP_Error True if the request has access, or WP_Error object.
    5454     */
    5555    public function permissions_check() {
     
    7171     * @since 5.9.0
    7272     *
    73      * @return WP_Error|void
     73     * @return void|WP_Error
    7474     */
    7575    public function export() {
Note: See TracChangeset for help on using the changeset viewer.