diff --git src/bp-core/bp-core-filters.php src/bp-core/bp-core-filters.php
index 0ef025a97..cccc84d5b 100644
|
|
|
add_filter( 'customize_nav_menu_available_item_types', 'bp_customizer_nav_menus_
|
| 951 | 951 | * |
| 952 | 952 | * @since 12.0.0 |
| 953 | 953 | * |
| 954 | | * @param WP_Post[] $pages Array of page objects. |
| 955 | | * @param array $args Array of get_pages() arguments. |
| 956 | | * @return WP_Post[] Array of page objects, potentially including BP directories. |
| | 954 | * @param WP_Post[] $pages Array of page objects. |
| | 955 | * @param array $args Array of get_pages() arguments. |
| | 956 | * @return WP_Post[] $pages Array of page objects, potentially including BP directories. |
| 957 | 957 | */ |
| 958 | 958 | function bp_core_include_directory_on_front( $pages = array(), $args = array() ) { |
| | 959 | // Prevent duplicate "page on front" option values when the 'legacy' BuddyPress URL Parser is in use. |
| | 960 | if ( 'rewrites' !== bp_core_get_query_parser() ) { |
| | 961 | return $pages; |
| | 962 | } |
| | 963 | |
| 959 | 964 | $is_page_on_front_dropdown = false; |
| 960 | 965 | |
| 961 | 966 | if ( isset( $args['name'] ) ) { |