Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/05/2023 07:32:10 AM (3 years ago)
Author:
imath
Message:

Prevent potential 3rd party plugins/themes issues for new installs

  • Load 12.0 deprecated functions even in new installs.
  • Add an Admin Notification to inform about BP Classic: the BP backwards compatibility Add-on.

Props emaralive, dcavins

Fixes #9015
Closes https://github.com/buddypress/buddypress/pull/183

File:
1 edited

Legend:

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

    r13431 r13632  
    875875                $versions        = bp_get_deprecated_functions_versions();
    876876
    877                 // When current version is the initial version, we shouldn't load deprecated functions files.
    878                 $this->assertTrue( is_array( $versions ) && ! $versions, 'Please check the list of `$deprecated_functions_versions` in `bp_get_deprecated_functions_versions()`. There should be one for each file of the `/src/bp-core/deprecated` directory.' );
     877                // When current version is the initial version, we should only load 12.0 deprecated functions file.
     878                $this->assertSame( $versions, array( '12.0' ), 'Please check the list of `$deprecated_functions_versions` in `bp_get_deprecated_functions_versions()`. There should be one for each file of the `/src/bp-core/deprecated` directory.' );
    879879
    880880                // We should load the 2 lasts deprecated functions files.
Note: See TracChangeset for help on using the changeset viewer.