Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/22/2024 03:50:51 AM (2 years ago)
Author:
imath
Message:

Use the current major version to decide about deprecated code to load

Using the current version in case of a minor version was preventing deprecated code to be loaded when this minor version was used to first activate BuddyPress.

Props vapvarun, emaralive

See #9075 (trunk)
Closes https://github.com/buddypress/buddypress/pull/219

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/class-buddypress.php

    r13667 r13705  
    655655            foreach ( $deprecated_functions_versions as $deprecated_functions_version ) {
    656656                // Load all or last 2 deprecated versions.
    657                 require $this->plugin_dir . sprintf( 'bp-core/deprecated/%s.php', $deprecated_functions_version );
     657                require $this->plugin_dir . sprintf( 'bp-core/deprecated/%s.php', number_format( $deprecated_functions_version, 1 ) );
    658658            }
    659659        }
Note: See TracChangeset for help on using the changeset viewer.