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.



Built from https://develop.svn.wordpress.org/trunk@56168


git-svn-id: http://core.svn.wordpress.org/trunk@55680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2023-07-08 21:59:23 +00:00
parent 7d8fc9c519
commit 92ab411bb5
2 changed files with 3 additions and 3 deletions

View File

@ -968,7 +968,7 @@ class WP_REST_Attachments_Controller extends WP_REST_Posts_Controller {
* *
* @since 4.7.0 * @since 4.7.0
* *
* @param array $data Supplied file data. * @param string $data Supplied file data.
* @param array $headers HTTP headers from the request. * @param array $headers HTTP headers from the request.
* @return array|WP_Error Data from wp_handle_sideload(). * @return array|WP_Error Data from wp_handle_sideload().
*/ */

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.3-beta3-56167'; $wp_version = '6.3-beta3-56168';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.