Changeset 13503 for trunk/src/bp-members/bp-members-template.php
- Timestamp:
- 06/18/2023 04:11:04 AM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-template.php
r13443 r13503 3094 3094 } 3095 3095 3096 $path_chunks = array( 3097 'single_item_component' => $bp->{$component}->slug, 3098 ); 3099 3100 // Append $action to $url if there is no $type. 3096 $path_chunks = array( $bp->{$component}->slug ); 3097 3098 // Append $action to $url if needed. 3101 3099 if ( ! empty( $action ) ) { 3102 $action_rewrite_id = 'member_' . str_replace( '-', '_', $action ); 3103 $path_chunks['single_item_action'] = bp_rewrites_get_slug( 'members', $action_rewrite_id, $action ); 3104 } 3105 3106 // Add a slash at the end of our user url. 3100 $path_chunks[] = $action; 3101 } 3102 3103 // Check for slugs customization. 3104 $path_chunks = bp_members_get_path_chunks( $path_chunks ); 3105 3106 // Generate user url. 3107 3107 $url = bp_displayed_user_url( $path_chunks ); 3108 3108 … … 3147 3147 $url = wp_nonce_url( 3148 3148 bp_displayed_user_url( 3149 array( 3150 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_' . $profile_slug, $profile_slug ), 3151 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $profile_slug . '_change_avatar', 'change-avatar' ), 3152 'single_item_action_variables' => array( bp_rewrites_get_slug( 'members', 'member_' . $profile_slug . '_delete_avatar', 'delete-avatar' ) ), 3153 ) 3149 bp_members_get_path_chunks( array( $profile_slug, 'change-avatar', array( 'delete-avatar' ) ) ) 3154 3150 ), 3155 3151 'bp_delete_avatar_link' … … 3679 3675 $retval = bp_members_get_user_url( 3680 3676 (int) $user_id, 3681 array( 3682 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_invitations', bp_get_members_invitations_slug() ), 3683 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_invitations_list_invites', 'list-invites' ), 3684 ) 3677 bp_members_get_path_chunks( array( bp_get_members_invitations_slug(), 'list-invites' ) ) 3685 3678 ); 3686 3679 … … 3721 3714 $retval = bp_members_get_user_url( 3722 3715 (int) $user_id, 3723 array( 3724 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_invitations', bp_get_members_invitations_slug() ), 3725 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_invitations_send_invites', 'send-invites' ), 3726 ) 3716 bp_members_get_path_chunks( array( bp_get_members_invitations_slug(), 'send-invites' ) ) 3727 3717 ); 3728 3718
Note: See TracChangeset
for help on using the changeset viewer.