Make WordPress Core


Ignore:
Timestamp:
07/08/2023 09:57:17 PM (22 months ago)
Author:
audrasjb
Message:

Docs: Docblock correction in WP_REST_Attachments_Controller::upload_from_data().

The $data parameter in WP_REST_Attachments_Controller::upload_from_data() is passed and treated only as string, not array.

Props costdev.
See #57840.

File:
1 edited

Legend:

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

    r56031 r56168  
    969969     * @since 4.7.0
    970970     *
    971      * @param array $data    Supplied file data.
    972      * @param array $headers HTTP headers from the request.
     971     * @param string $data    Supplied file data.
     972     * @param array  $headers HTTP headers from the request.
    973973     * @return array|WP_Error Data from wp_handle_sideload().
    974974     */
Note: See TracChangeset for help on using the changeset viewer.