Skip to content

Commit

Permalink
Eliminate calls to "user_domain" functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
boonebgorges committed Jul 10, 2024
1 parent c58cd76 commit 361a583
Show file tree
Hide file tree
Showing 16 changed files with 67 additions and 63 deletions.
10 changes: 5 additions & 5 deletions buddypress/activity/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<?php do_action( 'bp_before_activity_type_tab_all' ); ?>

<?php /* translators: total member count for site */ ?>
<li class="selected" id="activity-all"><a href="<?php echo esc_attr( bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' ); ?>" title="<?php esc_attr_e( 'The public activity for everyone on this site.', 'commons-in-a-box' ); ?>"><?php printf( esc_html__( 'All Members (%s)', 'commons-in-a-box' ), esc_html( bp_get_total_site_member_count() ) ); ?></a></li>
<li class="selected" id="activity-all"><a href="<?php echo esc_attr( bp_loggedin_user_url( bp_members_get_path_chunks( [ bp_get_activity_slug() ] ) ) ); ?>" title="<?php esc_attr_e( 'The public activity for everyone on this site.', 'commons-in-a-box' ); ?>"><?php printf( esc_html__( 'All Members (%s)', 'commons-in-a-box' ), esc_html( bp_get_total_site_member_count() ) ); ?></a></li>

<?php if ( is_user_logged_in() ) : ?>

Expand All @@ -29,7 +29,7 @@
<?php if ( function_exists( 'bp_get_total_friend_count' ) ) : ?>
<?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
<?php /* translators: friend count for user */ ?>
<li id="activity-friends"><a href="<?php echo esc_attr( bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' . BP_FRIENDS_SLUG . '/' ); ?>" title="<?php esc_attr_e( 'The activity of my friends only.', 'commons-in-a-box' ); ?>"><?php printf( esc_html__( 'My Friends (%s)', 'commons-in-a-box' ), esc_html( bp_get_total_friend_count( bp_loggedin_user_id() ) ) ); ?></a></li>
<li id="activity-friends"><a href="<?php echo esc_attr( bp_loggedin_user_url( bp_members_get_path_chunks( [ bp_get_activity_slug(), bp_get_friends_slug() ] ) ) ); ?>" title="<?php esc_attr_e( 'The activity of my friends only.', 'commons-in-a-box' ); ?>"><?php printf( esc_html__( 'My Friends (%s)', 'commons-in-a-box' ), esc_html( bp_get_total_friend_count( bp_loggedin_user_id() ) ) ); ?></a></li>
<?php endif; ?>
<?php endif; ?>

Expand All @@ -38,21 +38,21 @@
<?php if ( function_exists( 'bp_get_total_group_count_for_user' ) ) : ?>
<?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
<?php /* translators: group count for user */ ?>
<li id="activity-groups"><a href="<?php echo esc_attr( bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' . BP_GROUPS_SLUG . '/' ); ?>" title="<?php esc_attr_e( 'The activity of groups I am a member of.', 'commons-in-a-box' ); ?>"><?php printf( esc_html__( 'My Groups (%s)', 'commons-in-a-box' ), esc_html( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ); ?></a></li>
<li id="activity-groups"><a href="<?php echo esc_attr( bp_loggedin_user_url( bp_members_get_path_chunks( [ bp_get_activity_slug(), bp_get_groups_slug() ] ) ) ); ?>" title="<?php esc_attr_e( 'The activity of groups I am a member of.', 'commons-in-a-box' ); ?>"><?php printf( esc_html__( 'My Groups (%s)', 'commons-in-a-box' ), esc_html( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ); ?></a></li>
<?php endif; ?>
<?php endif; ?>

<?php do_action( 'bp_before_activity_type_tab_favorites' ); ?>

<?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?>
<?php /* translators: favorite activity count */ ?>
<li id="activity-favorites"><a href="<?php echo esc_attr( bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/favorites/' ); ?>" title="<?php esc_attr_e( "The activity I've marked as a favorite.", 'commons-in-a-box' ); ?>"><?php printf( esc_html_e( 'My Favorites (%s)', 'commons-in-a-box' ), '<span>' . esc_html( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) . '</span>' ); ?></a></li>
<li id="activity-favorites"><a href="<?php echo esc_attr( bp_loggedin_user_url( bp_members_get_path_chunks( [ bp_get_activity_slug(), 'favorites' ] ) ) ); ?>" title="<?php esc_attr_e( "The activity I've marked as a favorite.", 'commons-in-a-box' ); ?>"><?php printf( esc_html_e( 'My Favorites (%s)', 'commons-in-a-box' ), '<span>' . esc_html( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) . '</span>' ); ?></a></li>
<?php endif; ?>

<?php do_action( 'bp_before_activity_type_tab_mentions' ); ?>

<li id="activity-mentions">
<a href="<?php echo esc_attr( bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/mentions/' ); ?>" title="<?php esc_attr_e( 'Activity that I have been mentioned in.', 'commons-in-a-box' ); ?>">
<a href="<?php echo esc_attr( bp_loggedin_user_url( bp_members_get_path_chunks( [ bp_get_activity_slug(), 'mentions' ] ) ) ); ?>" title="<?php esc_attr_e( 'Activity that I have been mentioned in.', 'commons-in-a-box' ); ?>">
<?php /* translators: username of user whose mentions are being displayed */ ?>
<?php printf( esc_html__( '@%s Mentions', 'commons-in-a-box' ), esc_html( bp_get_loggedin_user_username() ) ); ?>
<?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?>
Expand Down
2 changes: 1 addition & 1 deletion buddypress/activity/post-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<?php // phpcs:enable WordPress.Security.NonceVerification.Recommended ?>

<div id="whats-new-avatar">
<a href="<?php echo esc_attr( bp_loggedin_user_domain() ); ?>">
<a href="<?php echo esc_attr( bp_loggedin_user_url() ); ?>">
<?php bp_loggedin_user_avatar( 'width=' . BP_AVATAR_THUMB_WIDTH . '&height=' . BP_AVATAR_THUMB_HEIGHT ); ?>
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion buddypress/docs/docs-loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</td>

<td class="author-cell hidden-xs">
<a href="<?php echo esc_attr( bp_core_get_user_domain( get_the_author_meta( 'ID' ) ) ); ?>" title="<?php echo esc_attr( bp_core_get_user_displayname( get_the_author_meta( 'ID' ) ) ); ?>"><?php echo esc_html( bp_core_get_user_displayname( get_the_author_meta( 'ID' ) ) ); ?></a>
<a href="<?php echo esc_attr( bp_core_get_user_url( get_the_author_meta( 'ID' ) ) ); ?>" title="<?php echo esc_attr( bp_core_get_user_displayname( get_the_author_meta( 'ID' ) ) ); ?>"><?php echo esc_html( bp_core_get_user_displayname( get_the_author_meta( 'ID' ) ) ); ?></a>
</td>

<td class="date-cell created-date-cell hidden-sm hidden-xs">
Expand Down
2 changes: 1 addition & 1 deletion buddypress/groups/single/invite-anyone.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@

<p class="invite-copy"><?php esc_html_e( 'This link will take you to My Invitations, where you may invite people to join the community and this group.', 'commons-in-a-box' ); ?></p>

<p><a class="btn btn-primary no-deco" href="<?php echo esc_attr( bp_loggedin_user_domain() . BP_INVITE_ANYONE_SLUG . '/invite-new-members/group-invites/' . bp_get_group_id() ); ?>"><?php esc_html_e( 'Invite New Members to This Community', 'commons-in-a-box' ); ?></a></p>
<p><a class="btn btn-primary no-deco" href="<?php echo esc_attr( bp_loggedin_user_url( bp_members_get_path_chunks( [ BP_INVITE_ANYONE_SLUG, 'invite-new-members', 'group-invites', bp_get_group_id() ] ) ) ); ?>"><?php esc_html_e( 'Invite New Members to This Community', 'commons-in-a-box' ); ?></a></p>

</div>
</div>
Expand Down
14 changes: 2 additions & 12 deletions buddypress/members/single/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,6 @@
);
?>

<?php
// Get the displayed user's base domain
// This is required because the my-* pages aren't really displayed user pages from BP's
// point of view
$dud = bp_displayed_user_domain();
if ( ! $dud ) {
$dud = bp_loggedin_user_domain(); // will always be the logged in user on my-*
}
?>

<div id="member-header" class="member-header row">
<?php
do_action( 'bp_before_member_header' );
Expand All @@ -63,8 +53,8 @@
<div id="profile-action-wrapper">
<?php if ( is_user_logged_in() && openlab_is_my_profile() ) : ?>
<div id="group-action-wrapper">
<a class="btn btn-default btn-block btn-primary link-btn" href="<?php echo esc_attr( $dud . 'profile/edit/' ); ?>"><i class="fa fa-pencil" aria-hidden="true"></i> <?php esc_html_e( 'Edit Profile', 'commons-in-a-box' ); ?></a>
<a class="btn btn-default btn-block btn-primary link-btn" href="<?php echo esc_attr( $dud . 'profile/change-avatar/' ); ?>"><i class="fa fa-camera" aria-hidden="true"></i> <?php esc_html_e( 'Change Avatar', 'commons-in-a-box' ); ?></a>
<a class="btn btn-default btn-block btn-primary link-btn" href="<?php echo esc_attr( bp_displayed_user_url( bp_members_get_path_chunks( [ bp_get_profile_slug(), 'edit' ] ) ) ); ?>"><i class="fa fa-pencil" aria-hidden="true"></i> <?php esc_html_e( 'Edit Profile', 'commons-in-a-box' ); ?></a>
<a class="btn btn-default btn-block btn-primary link-btn" href="<?php echo esc_attr( bp_displayed_user_url( bp_members_get_path_chunks( [ bp_get_profile_slug(), 'change-avatar' ] ) ) ); ?>"><i class="fa fa-camera" aria-hidden="true"></i> <?php esc_html_e( 'Change Avatar', 'commons-in-a-box' ); ?></a>
</div>
<?php elseif ( is_user_logged_in() && ! openlab_is_my_profile() ) : ?>
<?php bp_add_friend_button( openlab_fallback_user(), bp_loggedin_user_id() ); ?>
Expand Down
4 changes: 2 additions & 2 deletions buddypress/members/single/member-home.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

<?php if ( $friend_ids ) : ?>
<?php // translators: user display name ?>
<h2 class="title activity-title"><a class="no-deco" href="<?php echo esc_attr( bp_displayed_user_domain() . bp_get_friends_slug() ); ?>"><?php bp_word_or_name( __( 'My Friends', 'commons-in-a-box' ), __( "%s's Friends", 'commons-in-a-box' ) ); ?><span class="fa fa-chevron-circle-right font-size font-18" aria-hidden="true"></span></a></h2>
<h2 class="title activity-title"><a class="no-deco" href="<?php echo esc_attr( bp_displayed_user_url( bp_members_get_path_chunks( [ bp_get_friends_slug() ] ) ) ); ?>"><?php bp_word_or_name( __( 'My Friends', 'commons-in-a-box' ), __( "%s's Friends", 'commons-in-a-box' ) ); ?><span class="fa fa-chevron-circle-right font-size font-18" aria-hidden="true"></span></a></h2>

<ul id="member-list" class="inline-element-list">
<?php foreach ( $friend_ids as $friend_id ) : ?>
Expand All @@ -62,7 +62,7 @@
);
?>
<li class="inline-element">
<a href="<?php echo esc_attr( bp_core_get_user_domain( $friend_id ) ); ?>">
<a href="<?php echo esc_attr( bp_members_get_user_url( $friend_id ) ); ?>">
<img class="img-responsive" src="<?php echo esc_attr( $user_avatar ); ?>" alt="<?php echo esc_attr( bp_core_get_user_displayname( $friend_id ) ); ?>"/>
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion buddypress/members/single/settings/delete-account.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<?php do_action( 'bp_template_content' ); ?>

<form action="<?php echo esc_attr( bp_displayed_user_domain() . bp_get_settings_slug() . '/delete-account' ); ?>" name="account-delete-form" id="account-delete-form" class="standard-form" method="post">
<form action="<?php echo esc_attr( bp_displayed_user_url( bp_members_get_path_chunks( [ bp_get_settings_slug(), 'delete-account' ] ) ) ); ?>" name="account-delete-form" id="account-delete-form" class="standard-form" method="post">
<div class="bp-template-notice error margin-bottom">
<p><?php esc_html_e( 'WARNING: Deleting your account will completely remove ALL content associated with it. There is no way back, please be careful with this option.', 'commons-in-a-box' ); ?></p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion buddypress/members/single/settings/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<?php do_action( 'bp_template_content' ); ?>

<form action="<?php echo esc_attr( bp_displayed_user_domain() . bp_get_settings_slug() . '/general' ); ?>" method="post" class="standard-form form-panel" id="settings-form">
<form action="<?php echo esc_attr( bp_displayed_user_url( bp_members_get_path_chunks( [ bp_get_settings_slug(), 'general' ] ) ) ); ?>" method="post" class="standard-form form-panel" id="settings-form">

<div class="panel panel-default">
<div class="panel-heading"><?php esc_html_e( 'Account Settings', 'commons-in-a-box' ); ?></div>
Expand Down
2 changes: 1 addition & 1 deletion buddypress/members/single/settings/notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<?php do_action( 'bp_template_content' ); ?>

<form action="<?php echo esc_attr( bp_displayed_user_domain() . bp_get_settings_slug() . '/notifications' ); ?>" method="post" class="standard-form form-panel" id="settings-form">
<form action="<?php echo esc_attr( bp_displayed_user_url( bp_members_get_path_chunks( [ bp_get_settings_slug(), 'notifications' ] ) ) ); ?>" method="post" class="standard-form form-panel" id="settings-form">

<div class="panel panel-default">
<div class="panel-heading"><?php esc_html_e( 'Email Notifications', 'commons-in-a-box' ); ?></div>
Expand Down
2 changes: 1 addition & 1 deletion event-organiser/calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

if ( bp_is_user() ) {
echo '<ul>';
echo '<li><a class="bpeo-ical-link" href="' . esc_attr( bp_displayed_user_domain() . bpeo_get_events_slug() ) . '/ical/" title="' . esc_html__( 'Only public events are listed in this iCalendar. Suitable for sharing.', 'bp-event-organiser' ) . '"><span class="icon"></span>' . esc_attr__( 'Download iCalendar file (Public)', 'bp-event-organiser' ) . '</a></li>';
echo '<li><a class="bpeo-ical-link" href="' . esc_attr( bp_displayed_user_url( bp_members_get_path_chunks( [ bpeo_get_events_slug(), 'ical' ] ) ) ) . '" title="' . esc_html__( 'Only public events are listed in this iCalendar. Suitable for sharing.', 'bp-event-organiser' ) . '"><span class="icon"></span>' . esc_attr__( 'Download iCalendar file (Public)', 'bp-event-organiser' ) . '</a></li>';

if ( bp_is_my_profile() ) {
echo '<li><a class="bpeo-ical-link" href="' . esc_attr( bpeo_get_the_user_private_ical_url() ) . '" title="' . esc_html__( 'Both public and private events are listed in this iCalendar. Be mindful of who you share this with.', 'bp-event-organiser' ) . '"><span class="icon"></span>' . esc_html__( 'Download iCalendar file (Private)', 'bp-event-organiser' ) . '</a></li>';
Expand Down
4 changes: 2 additions & 2 deletions lib/group-funcs.php
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ function openlab_forum_pagination() {
* After portfolio delete, redirect to user profile page
*/
function openlab_delete_group() {
bp_core_redirect( bp_loggedin_user_domain() );
bp_core_redirect( bp_loggedin_user_url() );
}

// a variation on bp_groups_pagination_count() to match design
Expand Down Expand Up @@ -2164,7 +2164,7 @@ function openlab_get_faculty_list( $group_id = null ) {
foreach ( $faculty_ids as $id ) {
$faculty_link = sprintf(
'<a href="%s">%s</a>',
esc_url( bp_core_get_user_domain( $id ) ),
esc_url( bp_members_get_user_url( $id ) ),
esc_html( bp_core_get_user_displayname( $id ) )
);
array_push( $faculty, $faculty_link );
Expand Down
2 changes: 1 addition & 1 deletion lib/member-funcs.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ function openlab_profile_group_type_activity_block( \CBOX\OL\GroupType $type ) {
?>
<div id="<?php echo esc_attr( $type->get_slug() ); ?>-activity-stream" class="<?php echo esc_attr( $type->get_slug() ); ?>-list activity-list item-list col-sm-8 col-xs-12">
<?php
$href = add_query_arg( 'group_type', $type->get_slug(), bp_displayed_user_domain() . 'groups/' );
$href = add_query_arg( 'group_type', $type->get_slug(), bp_displayed_user_url( bp_members_get_path_chunks( [ bp_get_groups_slug() ] ) ) );
$x = 0;
?>
<?php /* @todo font awesome is loaded from openlab-toolbar.php */ ?>
Expand Down
65 changes: 40 additions & 25 deletions lib/menus.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,17 +473,22 @@ function openlab_get_submenu_extras() {
function openlab_profile_settings_submenu() {
global $bp;

$dud = bp_displayed_user_domain();
if ( ! $dud ) {
$dud = bp_loggedin_user_domain(); // will always be the logged in user on my-*
$user_id = bp_displayed_user_id();
if ( ! $user_id ) {
$user_id = bp_loggedin_user_id();
}

$profile_edit_url = bp_members_get_user_url( $user_id, bp_members_get_path_chunks( [ bp_get_profile_slug(), 'edit' ] ) );
$change_avatar_url = bp_members_get_user_url( $user_id, bp_members_get_path_chunks( [ bp_get_profile_slug(), 'change-avatar' ] ) );
$settings_url = bp_members_get_user_url( $user_id, bp_members_get_path_chunks( [ bp_get_settings_slug() ] ) );
$notifications_url = bp_members_get_user_url( $user_id, bp_members_get_path_chunks( [ bp_get_settings_slug(), 'notifications' ] ) );

$settings_slug = $dud . bp_get_settings_slug();
$menu_list = array(
$dud . 'profile/edit' => __( 'Edit Profile', 'commons-in-a-box' ),
$dud . 'profile/change-avatar' => __( 'Change Avatar', 'commons-in-a-box' ),
$settings_slug => __( 'Account Settings', 'commons-in-a-box' ),
$dud . 'settings/notifications' => __( 'Email Notifications', 'commons-in-a-box' ),
$profile_edit_url => __( 'Edit Profile', 'commons-in-a-box' ),
$change_avatar_url => __( 'Change Avatar', 'commons-in-a-box' ),
$settings_url => __( 'Account Settings', 'commons-in-a-box' ),
$notifications_url => __( 'Email Notifications', 'commons-in-a-box' ),
);

/** This filter is documented in /wp-content/plugins/buddypress/bp-settings/classes/class-bp-settings-component.php */
Expand Down Expand Up @@ -517,7 +522,7 @@ function openlab_my_groups_submenu( \CBOX\OL\GroupType $group_type ) {
'group_type' => $group_type->get_slug(),
'new' => 'true',
],
bp_get_group_create_url( [ 'group-details' ] )
bp_groups_get_create_url( [ 'group-details' ] )
);

$submenu_text = $group_type->get_label( 'my_groups' );
Expand Down Expand Up @@ -582,16 +587,16 @@ function openlab_my_friends_submenu( $count = true ) {
global $bp;
$menu_out = array();

$dud = bp_displayed_user_domain();
if ( ! $dud ) {
$dud = bp_loggedin_user_domain(); // will always be the logged in user on my-*
$user_id = bp_displayed_user_id();
if ( ! $user_id ) {
$user_id = bp_loggedin_user_id();
}

$request_ids = friends_get_friendship_request_user_ids( bp_loggedin_user_id() );
$request_count = intval( count( (array) $request_ids ) );

$my_friends = $dud . 'friends/';
$friend_requests = $dud . 'friends/requests/';
$my_friends = bp_members_get_user_url( $user_id, bp_members_get_path_chunks( [ bp_get_friends_slug() ] ) );
$friend_requests = bp_members_get_user_url( $user_id, bp_members_get_path_chunks( [ bp_get_friends_slug(), 'requests' ] ) );

$action = $bp->current_action;
$item = $bp->current_item;
Expand Down Expand Up @@ -627,31 +632,41 @@ function openlab_my_friends_submenu( $count = true ) {

// sub-menus for my-messages pages
function openlab_my_messages_submenu() {
$dud = bp_displayed_user_domain();
if ( ! $dud ) {
$dud = bp_loggedin_user_domain(); // will always be the logged in user on my-*
$user_id = bp_displayed_user_id();
if ( ! $user_id ) {
$user_id = bp_loggedin_user_id();
}

$inbox_url = bp_members_get_user_url( $user_id, bp_members_get_path_chunks( [ bp_get_messages_slug(), 'inbox' ] ) );
$sent_url = bp_members_get_user_url( $user_id, bp_members_get_path_chunks( [ bp_get_messages_slug(), 'sentbox' ] ) );
$compose_url = bp_members_get_user_url( $user_id, bp_members_get_path_chunks( [ bp_get_messages_slug(), 'compose' ] ) );

$menu_list = array(
$dud . 'messages/inbox/' => __( 'Inbox', 'commons-in-a-box' ),
$dud . 'messages/sentbox/' => __( 'Sent', 'commons-in-a-box' ),
$dud . 'messages/compose' => __( 'Compose', 'commons-in-a-box' ),
$inbox_url => __( 'Inbox', 'commons-in-a-box' ),
$sent_url => __( 'Sent', 'commons-in-a-box' ),
$compose_url => __( 'Compose', 'commons-in-a-box' ),
);

return openlab_submenu_gen( $menu_list );
}

// sub-menus for my-invites pages
function openlab_my_invitations_submenu() {
$dud = bp_displayed_user_domain();
if ( ! $dud ) {
$dud = bp_loggedin_user_domain(); // will always be the logged in user on my-*
$user_id = bp_displayed_user_id();
if ( ! $user_id ) {
$user_id = bp_loggedin_user_id();
}

$group_invites_url = bp_members_get_user_url( $user_id, bp_members_get_path_chunks( [ bp_get_groups_slug(), 'invites' ] ) );
$invite_anyone_url = bp_members_get_user_url( $user_id, bp_members_get_path_chunks( [ 'invite-anyone' ] ) );
$ia_sent_invites_url = bp_members_get_user_url( $user_id, bp_members_get_path_chunks( [ 'invite-anyone', 'sent-invites' ] ) );

$menu_list = array(
$dud . 'groups/invites/' => __( 'Invitations Received', 'commons-in-a-box' ),
$dud . 'invite-anyone/' => __( 'Invite New Members', 'commons-in-a-box' ),
$dud . 'invite-anyone/sent-invites/' => __( 'Sent Invitations', 'commons-in-a-box' ),
$group_invites_url => __( 'Invitations Received', 'commons-in-a-box' ),
$invite_anyone_url => __( 'Invite New Members', 'commons-in-a-box' ),
$ia_sent_invites_url => __( 'Sent Invitations', 'commons-in-a-box' ),
);

return openlab_submenu_gen( $menu_list );
}

Expand Down
Loading

0 comments on commit 361a583

Please sign in to comment.