Changeset 14178
- Timestamp:
- 12/27/2025 01:40:05 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/14.0/src/bp-settings/classes/class-bp-settings-component.php
r14060 r14178 155 155 ); 156 156 157 // Add Email nav item. Formerly called 'Notifications', we 158 // retain the old slug and function names for backward compat. 159 $sub_nav[] = array( 160 'name' => __( 'Email', 'buddypress' ), 161 'slug' => 'notifications', 162 'parent_slug' => $slug, 163 'screen_function' => 'bp_settings_screen_notification', 164 'position' => 20, 165 'user_has_access' => false, 166 'user_has_access_callback' => 'bp_core_can_edit_settings', 167 ); 168 169 $sub_nav[] = array( 170 'name' => _x( 'Profile Visibility', 'Profile settings sub nav', 'buddypress' ), 171 'slug' => 'profile', 172 'parent_slug' => $slug, 173 'screen_function' => 'bp_xprofile_screen_settings', 174 'position' => 30, 175 'user_has_access' => false, 176 'user_has_access_callback' => 'bp_core_can_edit_settings', 177 ); 157 /** 158 * Add Email nav item. Formely called 'Notifications', we 159 * retain the old slug and function names for backward compat. 160 */ 161 if ( bp_is_active( 'notifications' ) ) { 162 $sub_nav[] = array( 163 'name' => __( 'Email', 'buddypress' ), 164 'slug' => 'notifications', 165 'parent_slug' => $slug, 166 'screen_function' => 'bp_settings_screen_notification', 167 'position' => 20, 168 'user_has_access' => false, 169 'user_has_access_callback' => 'bp_core_can_edit_settings', 170 ); 171 } 172 173 if ( bp_is_active( 'xprofile' ) ) { 174 $sub_nav[] = array( 175 'name' => _x( 'Profile Visibility', 'Profile settings sub nav', 'buddypress' ), 176 'slug' => 'profile', 177 'parent_slug' => $slug, 178 'screen_function' => 'bp_xprofile_screen_settings', 179 'position' => 30, 180 'user_has_access' => false, 181 'user_has_access_callback' => 'bp_core_can_edit_settings', 182 ); 183 } 178 184 179 185 $sub_nav[] = array(
Note: See TracChangeset
for help on using the changeset viewer.