diff --git a/wp-admin/includes/translation-install.php b/wp-admin/includes/translation-install.php index 74681fb314..dc7cb89a05 100644 --- a/wp-admin/includes/translation-install.php +++ b/wp-admin/includes/translation-install.php @@ -14,7 +14,7 @@ * * @param string $type Type of translations. Accepts 'plugins', 'themes', 'core'. * @param array|object $args Translation API arguments. Optional. - * @return object|WP_Error On success an object of translations, WP_Error on failure. + * @return array|WP_Error On success an associative array of translations, WP_Error on failure. */ function translations_api( $type, $args = null ) { // Include an unmodified $wp_version. @@ -29,9 +29,9 @@ function translations_api( $type, $args = null ) { * * @since 4.0.0 * - * @param false|object $result The result object. Default false. - * @param string $type The type of translations being requested. - * @param object $args Translation API arguments. + * @param false|array $result The result array. Default false. + * @param string $type The type of translations being requested. + * @param object $args Translation API arguments. */ $res = apply_filters( 'translations_api', false, $type, $args ); @@ -102,9 +102,9 @@ function translations_api( $type, $args = null ) { * * @since 4.0.0 * - * @param object|WP_Error $res Response object or WP_Error. - * @param string $type The type of translations being requested. - * @param object $args Translation API arguments. + * @param array|WP_Error $res Response as an associative array or WP_Error. + * @param string $type The type of translations being requested. + * @param object $args Translation API arguments. */ return apply_filters( 'translations_api_result', $res, $type, $args ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 16e86aef9a..0191ac3057 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52644'; +$wp_version = '6.0-alpha-52645'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.