Changeset 12927 for trunk/src/bp-core/admin/bp-core-admin-functions.php
- Timestamp:
- 04/28/2021 11:52:15 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-functions.php
r12899 r12927 86 86 } 87 87 88 // Keep the BuddyPress tools menu highlighted .89 if ( 'bp-optouts' === $plugin_page ) {88 // Keep the BuddyPress tools menu highlighted when using a tools tab. 89 if ( 'bp-optouts' === $plugin_page || 'bp-members-invitations' === $plugin_page ) { 90 90 $submenu_file = 'bp-tools'; 91 91 } … … 285 285 // Activate and Register are special cases. They are not components but they need WP pages. 286 286 // If user registration is disabled, we can skip this step. 287 if ( bp_get_signup_allowed() ) {287 if ( bp_get_signup_allowed() || bp_get_members_invitations_allowed() ) { 288 288 $wp_page_components[] = array( 289 289 'id' => 'activate', … … 480 480 ), 481 481 '1' => array( 482 'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-members-invitations' ), $tools_page ) ), 483 'name' => __( 'Manage Invitations', 'buddypress' ), 484 ), 485 '2' => array( 482 486 'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-optouts' ), $tools_page ) ), 483 487 'name' => __( 'Manage Opt-outs', 'buddypress' ),
Note: See TracChangeset
for help on using the changeset viewer.