Changeset 14029
- Timestamp:
- 09/28/2024 03:30:07 AM (6 months ago)
- Location:
- trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-actions.php
r13686 r14029 123 123 124 124 // Fire a deprecation notice for following deprecated hooks, if needed. 125 if ( ! function_exists( 'bp_classic') ) {125 if ( ! bp_is_classic() ) { 126 126 apply_filters_deprecated( 'bp_uri', array( '' ), '12.0.0' ); 127 127 do_action_deprecated( 'is_not_buddypress', array(), '12.0.0' ); -
trunk/src/bp-core/bp-core-functions.php
r14026 r14029 5289 5289 return $screen_id === $bp->admin->current_screen; 5290 5290 } 5291 5292 /** 5293 * Common function to check if bp_classic is active or not. 5294 * 5295 * @since 15.0.0 5296 * 5297 * @return bool True if bp_classic is active, false otherwise. 5298 */ 5299 function bp_is_classic() { 5300 return function_exists( 'bp_classic' ) || ( function_exists( 'is_plugin_active' ) && is_plugin_active( 'bp-classic/bp-classic.php' ) ); 5301 } -
trunk/src/bp-core/bp-core-update.php
r13968 r14029 862 862 * when the BP Classic plugin is not active. 863 863 */ 864 if ( ! function_exists( 'bp_classic') ) {864 if ( ! bp_is_classic() ) { 865 865 $post_type = bp_core_get_directory_post_type(); 866 866 -
trunk/src/bp-core/bp-core-wpabstraction.php
r13968 r14029 430 430 } 431 431 add_action( 'wp_validate_site_deletion', 'bp_delete_site', 10, 2 ); 432 433 if ( ! function_exists( 'is_plugin_active' ) ) { 434 /** 435 * Checks if a plugin is active. 436 * 437 * @since 15.0.0 438 * 439 * @param string $plugin Plugin path to check. 440 * @return bool True if the plugin is active, false otherwise. 441 */ 442 function is_plugin_active( $plugin ) { 443 return in_array( $plugin, (array) get_option( 'active_plugins', array() ), true ) || ( is_multisite() && isset( get_site_option( 'active_sitewide_plugins' )[ $plugin ] ) ); 444 } 445 } -
trunk/src/bp-core/classes/class-bp-core.php
r14026 r14029 277 277 278 278 // Only fully deprecate the legacy navigation globals if BP Classic is not active. 279 if ( ! function_exists( 'bp_classic') ) {279 if ( ! bp_is_classic() ) { 280 280 // Backward compatibility for plugins modifying the legacy bp_nav and bp_options_nav global properties. 281 281 $bp->bp_nav = new BP_Core_BP_Nav_BackCompat(); -
trunk/src/bp-core/deprecated/12.0.php
r13877 r14029 11 11 12 12 // These functions has been moved to the BP Classic plugin. 13 if ( ! function_exists( 'bp_classic') ) {13 if ( ! bp_is_classic() ) { 14 14 /** 15 15 * Analyze the URI and break it down into BuddyPress-usable chunks. -
trunk/src/bp-templates/bp-nouveau/buddypress-functions.php
r14022 r14029 126 126 ); 127 127 128 // When BP Classic is activated, regular themes need this filter. 129 if ( function_exists( 'bp_classic') ) {128 // When BP Classic is activated, regular themes need this filter. 129 if ( bp_is_classic() ) { 130 130 // Set the BP Uri for the Ajax customizer preview. 131 131 add_filter( 'bp_uri', array( $this, 'customizer_set_uri' ), 10, 1 );
Note: See TracChangeset
for help on using the changeset viewer.