Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/25/2014 06:52:58 PM (10 years ago)
Author:
boonebgorges
Message:

Don't remove Register and Activate pages from bp_core_get_directory_page_ids().

These two pages do not correspond to components, so they should be excluded
from bp_is_active() checks.

Props imath.
Fixes #6043.

File:
1 edited

Legend:

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

    r9177 r9180  
    383383            if ( empty( $component_name ) || empty( $page_id ) ) {
    384384                unset( $page_ids[ $component_name ] );
     385            }
     386
     387            // 'register' and 'activate' do not have components, but should be whitelisted.
     388            if ( bp_get_signup_allowed() && ( 'register' === $component_name || 'activate' === $component_name ) ) {
     389                continue;
    385390            }
    386391
Note: See TracChangeset for help on using the changeset viewer.