Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/21/2014 08:11:31 PM (12 years ago)
Author:
djpaul
Message:

Core: match the registration route precisely.

Previously, you could enter the registration route with non-existent
parts, such as /registration/test/, and BuddyPress would serve up the
registration template.

By checking if bp_current_action() is set (the /test/ part), we can
bail out of bp_core_screen_signup(). BuddyPress will correctly 404
these incorrect URLs.

Fixes #5772

File:
1 edited

Legend:

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

    r8335 r8658  
    4141        global $bp;
    4242
    43         if ( !bp_is_current_component( 'register' ) )
     43        if ( ! bp_is_current_component( 'register' ) || bp_current_action() )
    4444                return;
    4545
Note: See TracChangeset for help on using the changeset viewer.