- Timestamp:
- 06/18/2023 04:11:04 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/classes/class-bp-messages-component.php
r13495 r13503 310 310 // Menus for logged in user. 311 311 if ( is_user_logged_in() ) { 312 $message_slug = bp_get_messages_slug(); 313 $custom_message_slug = bp_rewrites_get_slug( 'members', 'member_' . $message_slug, $message_slug ); 312 $message_slug = bp_get_messages_slug(); 314 313 315 314 // Unread message count. … … 336 335 'id' => 'my-account-' . $this->id, 337 336 'title' => $title, 338 'href' => bp_loggedin_user_url( 339 array( 340 'single_item_component' => $custom_message_slug, 341 ) 342 ), 337 'href' => bp_loggedin_user_url( bp_members_get_path_chunks( array( $message_slug ) ) ), 343 338 ); 344 339 … … 348 343 'id' => 'my-account-' . $this->id . '-inbox', 349 344 'title' => $inbox, 350 'href' => bp_loggedin_user_url( 351 array( 352 'single_item_component' => $custom_message_slug, 353 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $message_slug . '_inbox', 'inbox' ), 354 ) 355 ), 345 'href' => bp_loggedin_user_url( bp_members_get_path_chunks( array( $message_slug, 'inbox' ) ) ), 356 346 'position' => 10, 357 347 ); … … 359 349 // Starred. 360 350 if ( bp_is_active( $this->id, 'star' ) ) { 361 $star_slug = bp_get_messages_starred_slug();362 351 $wp_admin_nav[] = array( 363 352 'parent' => 'my-account-' . $this->id, 364 353 'id' => 'my-account-' . $this->id . '-starred', 365 354 'title' => __( 'Starred', 'buddypress' ), 366 'href' => bp_loggedin_user_url( 367 array( 368 'single_item_component' => $custom_message_slug, 369 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $message_slug . '_' . $star_slug, $star_slug ), 370 ) 371 ), 355 'href' => bp_loggedin_user_url( bp_members_get_path_chunks( array( $message_slug, bp_get_messages_starred_slug() ) ) ), 372 356 'position' => 11, 373 357 ); … … 379 363 'id' => 'my-account-' . $this->id . '-sentbox', 380 364 'title' => __( 'Sent', 'buddypress' ), 381 'href' => bp_loggedin_user_url( 382 array( 383 'single_item_component' => $custom_message_slug, 384 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $message_slug . '_sentbox', 'sentbox' ), 385 ) 386 ), 365 'href' => bp_loggedin_user_url( bp_members_get_path_chunks( array( $message_slug, 'sentbox' ) ) ), 387 366 'position' => 20, 388 367 ); … … 393 372 'id' => 'my-account-' . $this->id . '-compose', 394 373 'title' => __( 'Compose', 'buddypress' ), 395 'href' => bp_loggedin_user_url( 396 array( 397 'single_item_component' => $custom_message_slug, 398 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $message_slug . '_compose', 'compose' ), 399 ) 400 ), 374 'href' => bp_loggedin_user_url( bp_members_get_path_chunks( array( $message_slug, 'compose' ) ) ), 401 375 'position' => 30, 402 376 ); … … 408 382 'id' => 'my-account-' . $this->id . '-notices', 409 383 'title' => __( 'Site Notices', 'buddypress' ), 410 'href' => bp_loggedin_user_url( 411 array( 412 'single_item_component' => $custom_message_slug, 413 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $message_slug . '_notices', 'notices' ), 414 ) 415 ), 384 'href' => bp_loggedin_user_url( bp_members_get_path_chunks( array( $message_slug, 'notices' ) ) ), 416 385 'position' => 90, 417 386 );
Note: See TracChangeset
for help on using the changeset viewer.