mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@55002 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eb21dd9511
commit
bbbb949307
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user