Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/07/2021 01:49:37 PM (5 years ago)
Author:
dcavins
Message:

Introduce bp_allow_access_to_registration_pages().

Add core function to determine whether
registration and activation pages should be created.

Fixes #8580.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-admin-functions.php

    r12956 r13118  
    285285    // Activate and Register are special cases. They are not components but they need WP pages.
    286286    // If user registration is disabled, we can skip this step.
    287     if ( bp_get_signup_allowed() || bp_get_members_invitations_allowed() ) {
     287    if ( bp_allow_access_to_registration_pages() ) {
    288288        $wp_page_components[] = array(
    289289            'id'   => 'activate',
Note: See TracChangeset for help on using the changeset viewer.