diff --git src/bp-core/bp-core-functions.php src/bp-core/bp-core-functions.php
index d4e0877..03b787b 100644
|
|
function bp_core_get_packaged_component_ids() { |
376 | 376 | */ |
377 | 377 | function bp_core_get_directory_page_ids() { |
378 | 378 | $page_ids = bp_get_option( 'bp-pages' ); |
| 379 | $register_pages = array_fill_keys( array( 'register', 'activate' ) , bp_get_signup_allowed() ); |
379 | 380 | |
380 | 381 | // Ensure that empty indexes are unset. Should only matter in edge cases |
381 | 382 | if ( !empty( $page_ids ) && is_array( $page_ids ) ) { |
… |
… |
function bp_core_get_directory_page_ids() { |
384 | 385 | unset( $page_ids[ $component_name ] ); |
385 | 386 | } |
386 | 387 | |
| 388 | if ( isset( $register_pages[ $component_name ] ) ) { |
| 389 | continue; |
| 390 | } |
| 391 | |
387 | 392 | if ( ! bp_is_active( $component_name ) || 'trash' == get_post_status( $page_id ) ) { |
388 | 393 | unset( $page_ids[ $component_name ] ); |
389 | 394 | } |
… |
… |
function bp_core_get_suggestions( $args ) { |
2057 | 2062 | } |
2058 | 2063 | |
2059 | 2064 | return apply_filters( 'bp_core_get_suggestions', $retval, $args ); |
2060 | | } |
2061 | | No newline at end of file |
| 2065 | } |