Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/07/2021 01:49:37 PM (3 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/bp-core-functions.php

    r13108 r13118  
    703703    // Register and Activate are not components, but need pages when
    704704    // registration is enabled.
    705     if ( bp_get_signup_allowed() || bp_get_members_invitations_allowed() ) {
     705    if ( bp_allow_access_to_registration_pages() ) {
    706706        foreach ( array( 'register', 'activate' ) as $slug ) {
    707707            if ( ! isset( $pages[ $slug ] ) ) {
Note: See TracChangeset for help on using the changeset viewer.