Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/13/2022 12:16:46 PM (21 months ago)
Author:
imath
Message:

Media: add support for the .webp image file type

NB: this support will only be available when the community site uses WP >= 5.8.

Props dcavins

Fixes #8643

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-attachment-cover-image.php

    r12602 r13315  
    196196        // Get default script data.
    197197        $script_data = parent::script_data();
     198
     199        // Adds the list of supported image types.
     200        $script_data['mime_types'] = implode( ',', bp_attachments_get_allowed_types( 'cover_image' ) );
    198201
    199202        if ( bp_is_user() ) {
Note: See TracChangeset for help on using the changeset viewer.