Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/13/2022 12:16:46 PM (20 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-avatar.php

    r13215 r13315  
    399399        // Get default script data.
    400400        $script_data = parent::script_data();
     401
     402        // Adds the list of supported image types.
     403        $script_data['mime_types'] = implode( ',', bp_core_get_allowed_avatar_types() );
    401404
    402405        // Defaults to Avatar Backbone script.
Note: See TracChangeset for help on using the changeset viewer.