From 92ab411bb52088259c7b67b04a9d6b86224364ab Mon Sep 17 00:00:00 2001 From: audrasjb Date: Sat, 8 Jul 2023 21:59:23 +0000 Subject: [PATCH] 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 --- .../endpoints/class-wp-rest-attachments-controller.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php index cae96c2587..09eae58f23 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php @@ -968,8 +968,8 @@ class WP_REST_Attachments_Controller extends WP_REST_Posts_Controller { * * @since 4.7.0 * - * @param array $data Supplied file data. - * @param array $headers HTTP headers from the request. + * @param string $data Supplied file data. + * @param array $headers HTTP headers from the request. * @return array|WP_Error Data from wp_handle_sideload(). */ protected function upload_from_data( $data, $headers ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 0a21f97c6e..92bec2bb9f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @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.