Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2023 04:01:49 AM (3 years ago)
Author:
imath
Message:

Raise WordPress required version to 5.8

Closes https://github.com/buddypress/buddypress/pull/61
Fixes #8822

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/core/avatars.php

    r13316 r13417  
    66class BP_Tests_Avatars extends BP_UnitTestCase {
    77        private $params = array();
    8         protected $allowed_image_types = array( 'jpg', 'jpeg', 'jpe', 'gif', 'png' );
    9         protected $allowed_image_mimes = array( 'image/jpeg', 'image/jpeg', 'image/jpeg', 'image/gif', 'image/png' );
     8        protected $allowed_image_types = array( 'jpg', 'jpeg', 'jpe', 'gif', 'png', 'webp' );
     9        protected $allowed_image_mimes = array( 'image/jpeg', 'image/jpeg', 'image/jpeg', 'image/gif', 'image/png', 'image/webp' );
    1010
    1111        public function set_up() {
    1212                parent::set_up();
    13 
    14                 if ( bp_is_running_wp( '5.8.0', '>=' ) ) {
    15                         $this->allowed_image_types[] = 'webp';
    16                         $this->allowed_image_mimes[] = 'image/webp';
    17                 }
    1813        }
    1914
Note: See TracChangeset for help on using the changeset viewer.