Changeset 14026 for trunk/src/bp-core/bp-core-functions.php
- Timestamp:
- 09/27/2024 09:11:27 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-functions.php
r14013 r14026 5007 5007 /* 5008 5008 * If the constant is not defined, put our logic in place so that only the 5009 * 2 last versions deprecated functions will be loaded for upgraded install s.5009 * 2 last versions deprecated functions will be loaded for upgraded installations. 5010 5010 */ 5011 5011 $initial_version = (float) bp_get_initial_version(); … … 5013 5013 $load_latest_deprecated = $initial_version < $current_major_version; 5014 5014 5015 // New install s.5015 // New installations. 5016 5016 if ( ! $load_latest_deprecated ) { 5017 5017 // Run some additional checks if PHPUnit is running. … … 5019 5019 $deprecated_files = array_filter( 5020 5020 array_map( 5021 function ( $file ) {5022 if ( false !== strpos( $file, '.php' ) ) {5021 function ( $file ) { 5022 if ( str_contains( $file, '.php' ) ) { 5023 5023 return (float) str_replace( '.php', '', $file ); 5024 }; 5024 } 5025 5026 return null; 5025 5027 }, 5026 5028 scandir( buddypress()->plugin_dir . 'bp-core/deprecated' )
Note: See TracChangeset
for help on using the changeset viewer.