Skip to content

Commit

Permalink
Check only once if BuddyPress config & versions are ok
Browse files Browse the repository at this point in the history
Fixes #28
  • Loading branch information
imath committed Nov 11, 2023
1 parent 98ebc29 commit e1bc210
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions class-bp-classic.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,13 @@ public static function switch_directory_post_type() {
* False if BuddyPress is not supported.
*/
public static function start() {
// This plugin is only usable with BuddyPress.
if ( ! self::is_buddypress_supported() ) {
return false;
}

// If the single instance hasn't been set, set it now.
if ( null === self::$instance ) {
// This plugin is only usable with BuddyPress.
if ( ! self::is_buddypress_supported() ) {
return false;
}

self::$instance = new self();
}

Expand Down

0 comments on commit e1bc210

Please sign in to comment.