diff --git a/includes/restrictions.php b/includes/restrictions.php index fd24472..5d1e1bb 100644 --- a/includes/restrictions.php +++ b/includes/restrictions.php @@ -195,7 +195,7 @@ function pmpro_bp_buddypress_or_pmpro_registration() { $pmpro_bp_register = get_option( 'pmpro_bp_registration_page' ); - if( !empty( $pmpro_bp_register ) && $pmpro_bp_register == 'buddypress' && ( $post->ID == $pmpro_pages['levels'] ) && !is_user_logged_in() ) { + if( !empty( $pmpro_bp_register ) && $pmpro_bp_register == 'buddypress' && $post->ID != 0 && $post->ID == $pmpro_pages['levels'] && !is_user_logged_in() ) { //Use BuddyPress Register page wp_redirect( get_permalink( $bp_pages['register'] ) ); exit;