Make WordPress Core

Changeset 55002


Ignore:
Timestamp:
12/17/2022 11:05:38 PM (22 months ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r54243 r55002  
    994994 * @since 5.4.0 The original URL of the attachment is stored in the `_source_url`
    995995 *              post meta value.
     996 * @since 5.8.0 Added 'webp' to the default list of allowed file extensions.
    996997 *
    997998 * @param string $file        The URL of the image to download.
     
    10181019         *  - `png`
    10191020         *  - `gif`
     1021         *  - `webp`
    10201022         *
    10211023         * @since 5.6.0
     1024         * @since 5.8.0 Added 'webp' to the default list of allowed file extensions.
    10221025         *
    10231026         * @param string[] $allowed_extensions Array of allowed file extensions.
Note: See TracChangeset for help on using the changeset viewer.