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/tests/phpunit/testcases/core/functions.php

    r13314 r13315  
    785785     */
    786786    public function test_bp_attachments_get_allowed_types() {
    787         $supported = array( 'jpeg', 'gif', 'png' );
     787        $supported = array( 'jpg', 'jpeg', 'jpe', 'gif', 'png', 'webp' );
    788788
    789789        $avatar = bp_attachments_get_allowed_types( 'avatar' );
Note: See TracChangeset for help on using the changeset viewer.