Skip to:
Content

BuddyPress.org

Changeset 13982


Ignore:
Timestamp:
07/27/2024 05:14:13 PM (6 months ago)
Author:
espellcaste
Message:

Allow access to the wp-signup.php page when the Site Tracking component is not active.

Access to the https://wp.test/wp-signup.php page is allowed when the Site Tracking component *is not* active.

Props needle.

Fixes #8775
Closes https://github.com/buddypress/buddypress/pull/329

File:
1 edited

Legend:

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

    r13981 r13982  
    25542554        $referer_path     = wp_parse_url( $referer, PHP_URL_PATH );
    25552555        $is_site_creation = false !== strpos( $referer_path, 'wp-admin/my-sites.php' );
     2556    } else {
     2557        // The WordPress registration setting must allow access.
     2558        $registration = get_site_option( 'registration' );
     2559        if ( is_user_logged_in() && in_array( $registration, array( 'blog', 'all' ), true ) ) {
     2560            $is_site_creation = true;
     2561        }
    25562562    }
    25572563
Note: See TracChangeset for help on using the changeset viewer.