- Timestamp:
- 06/18/2023 04:11:04 AM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-component.php
r13492 r13503 765 765 if ( bp_is_item_admin() ) { 766 766 // Get the "manage" screens. 767 $manage_screens = bp_get_group_screens( 'manage', true ); 768 $admin_link = bp_get_group_url( 769 $this->current_group, 770 array( 771 'single_item_action' => bp_rewrites_get_slug( 'groups', 'bp_group_read_admin', 'admin' ), 772 ) 773 ); 767 $manage_screens = bp_get_group_screens( 'manage', true ); 774 768 775 769 // Common params to all nav items. … … 840 834 841 835 // Setup the logged in user variables. 842 $groups_slug = bp_get_groups_slug(); 843 $custom_groups_slug = bp_rewrites_get_slug( 'members', 'member_' . $groups_slug, $groups_slug ); 836 $groups_slug = bp_get_groups_slug(); 844 837 845 838 $title = _x( 'Groups', 'My Account Groups', 'buddypress' ); … … 869 862 'id' => 'my-account-' . $this->id, 870 863 'title' => $title, 871 'href' => bp_loggedin_user_url( 872 array( 873 'single_item_component' => $custom_groups_slug, 874 ) 875 ), 864 'href' => bp_loggedin_user_url( bp_members_get_path_chunks( array( $groups_slug ) ) ), 876 865 ); 877 866 … … 881 870 'id' => 'my-account-' . $this->id . '-memberships', 882 871 'title' => _x( 'Memberships', 'My Account Groups sub nav', 'buddypress' ), 883 'href' => bp_loggedin_user_url( 884 array( 885 'single_item_component' => $custom_groups_slug, 886 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $groups_slug . '_my_groups', 'my-groups' ), 887 ) 888 ), 872 'href' => bp_loggedin_user_url( bp_members_get_path_chunks( array( $groups_slug, 'my-groups' ) ) ), 889 873 'position' => 10, 890 874 ); … … 896 880 'id' => 'my-account-' . $this->id . '-invites', 897 881 'title' => $pending, 898 'href' => bp_loggedin_user_url( 899 array( 900 'single_item_component' => $custom_groups_slug, 901 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $groups_slug . '_invites', 'invites' ), 902 ) 903 ), 882 'href' => bp_loggedin_user_url( bp_members_get_path_chunks( array( $groups_slug, 'invites' ) ) ), 904 883 'position' => 30, 905 884 );
Note: See TracChangeset
for help on using the changeset viewer.