From 9c1d82dd171c7fd5b695f53e2abad5c5fb17031c Mon Sep 17 00:00:00 2001 From: audrasjb Date: Sat, 17 Dec 2022 23:07:16 +0000 Subject: [PATCH] Docs: Update docs for `image_sideload_extensions` filter to include `webp` in the list of allowed extensions. Follow-up to [50810]. Props dimadin. Fixes #57346. See #56792. Built from https://develop.svn.wordpress.org/trunk@55002 git-svn-id: http://core.svn.wordpress.org/trunk@54535 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 3 +++ wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index c479ddc851..0938257da7 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -993,6 +993,7 @@ function wp_media_upload_handler() { * @since 5.3.0 The `$post_id` parameter was made optional. * @since 5.4.0 The original URL of the attachment is stored in the `_source_url` * post meta value. + * @since 5.8.0 Added 'webp' to the default list of allowed file extensions. * * @param string $file The URL of the image to download. * @param int $post_id Optional. The post ID the media is to be associated with. @@ -1017,8 +1018,10 @@ function media_sideload_image( $file, $post_id = 0, $desc = null, $return_type = * - `jpe` * - `png` * - `gif` + * - `webp` * * @since 5.6.0 + * @since 5.8.0 Added 'webp' to the default list of allowed file extensions. * * @param string[] $allowed_extensions Array of allowed file extensions. * @param string $file The URL of the image to download. diff --git a/wp-includes/version.php b/wp-includes/version.php index 3864ee9237..efb6bc4217 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-55001'; +$wp_version = '6.2-alpha-55002'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.