- Timestamp:
- 03/27/2023 06:19:06 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-settings/classes/class-bp-settings-component.php
r13441 r13442 235 235 // Menus for logged in user. 236 236 if ( is_user_logged_in() ) { 237 238 // Setup the logged in user variables. 239 $settings_link = trailingslashit( bp_loggedin_user_domain() . bp_get_settings_slug() ); 237 $settings_slug = bp_get_settings_slug(); 238 $custom_settings_slug = bp_rewrites_get_slug( 'members', 'member_' . $settings_slug, $settings_slug ); 240 239 241 240 // Add main Settings menu. … … 244 243 'id' => 'my-account-' . $this->id, 245 244 'title' => __( 'Settings', 'buddypress' ), 246 'href' => $settings_link, 245 'href' => bp_loggedin_user_url( 246 array( 247 'single_item_component' => $custom_settings_slug, 248 ) 249 ), 247 250 ); 248 251 … … 252 255 'id' => 'my-account-' . $this->id . '-general', 253 256 'title' => __( 'General', 'buddypress' ), 254 'href' => trailingslashit( $settings_link . 'general' ), 257 'href' => bp_loggedin_user_url( 258 array( 259 'single_item_component' => $custom_settings_slug, 260 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $settings_slug . '_general', 'general' ), 261 ) 262 ), 255 263 'position' => 10, 256 264 ); … … 262 270 'id' => 'my-account-' . $this->id . '-notifications', 263 271 'title' => __( 'Email', 'buddypress' ), 264 'href' => trailingslashit( $settings_link . 'notifications' ), 272 'href' => bp_loggedin_user_url( 273 array( 274 'single_item_component' => $custom_settings_slug, 275 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $settings_slug . '_notifications', 'notifications' ), 276 ) 277 ), 265 278 'position' => 20, 266 279 ); … … 276 289 'id' => 'my-account-' . $this->id . '-data', 277 290 'title' => __( 'Export Data', 'buddypress' ), 278 'href' => trailingslashit( $settings_link . 'data' ), 291 'href' => bp_loggedin_user_url( 292 array( 293 'single_item_component' => $custom_settings_slug, 294 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $settings_slug . '_data', 'data' ), 295 ) 296 ), 279 297 'position' => 89, 280 298 ); … … 287 305 'id' => 'my-account-' . $this->id . '-delete-account', 288 306 'title' => __( 'Delete Account', 'buddypress' ), 289 'href' => trailingslashit( $settings_link . 'delete-account' ), 307 'href' => bp_loggedin_user_url( 308 array( 309 'single_item_component' => $custom_settings_slug, 310 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $settings_slug . '_delete_account', 'delete-account' ), 311 ) 312 ), 290 313 'position' => 90, 291 314 );
Note: See TracChangeset
for help on using the changeset viewer.