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
This commit is contained in:
audrasjb 2022-12-17 23:07:16 +00:00
parent 92673e251e
commit 9c1d82dd17
2 changed files with 4 additions and 1 deletions

View File

@ -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.

View File

@ -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.