Changeset 13441 for trunk/src/bp-members/bp-members-adminbar.php
- Timestamp:
- 03/23/2023 07:35:38 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-adminbar.php
r13395 r13441 43 43 'group' => true, 44 44 'title' => __( 'Edit My Profile', 'buddypress' ), 45 'href' => bp_loggedin_user_ domain(),45 'href' => bp_loggedin_user_url(), 46 46 'meta' => array( 47 47 'class' => 'ab-sub-secondary' … … 201 201 202 202 if ( bp_current_user_can( 'bp_members_invitations_view_screens' ) ) { 203 $bp = buddypress(); 204 $invitations_link = trailingslashit( bp_loggedin_user_domain() . bp_get_members_invitations_slug() ); 203 $bp = buddypress(); 204 $invite_slug = bp_get_members_invitations_slug(); 205 $custom_invite_slug = bp_rewrites_get_slug( 'members', 'member_' . $invite_slug, $invite_slug ); 205 206 206 207 $wp_admin_bar->add_node( … … 209 210 'parent' => $bp->my_account_menu_id, 210 211 'title' => __( 'Invitations', 'buddypress' ), 211 'href' => $invitations_link, 212 'href' => bp_loggedin_user_url( 213 array( 214 'single_item_component' => $custom_invite_slug, 215 ) 216 ), 212 217 'meta' => array( 213 218 'class' => 'ab-sub-secondary' … … 222 227 'parent' => $bp->my_account_menu_id . '-invitations', 223 228 'title' => __( 'Send Invites', 'buddypress' ), 224 'href' => $invitations_link . 'send-invites/', 229 'href' => bp_loggedin_user_url( 230 array( 231 'single_item_component' => $custom_invite_slug, 232 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $invite_slug . '_send_invites', 'send-invites' ), 233 ) 234 ), 225 235 'meta' => array( 226 236 'class' => 'ab-sub-secondary' … … 235 245 'parent' => $bp->my_account_menu_id . '-invitations', 236 246 'title' => __( 'Pending Invites', 'buddypress' ), 237 'href' => $invitations_link . 'list-invites/', 247 'href' => bp_loggedin_user_url( 248 array( 249 'single_item_component' => $custom_invite_slug, 250 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $invite_slug . '_list_invites', 'list-invites' ), 251 ) 252 ), 238 253 'meta' => array( 239 254 'class' => 'ab-sub-secondary'
Note: See TracChangeset
for help on using the changeset viewer.