Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/09/2014 07:18:31 PM (10 years ago)
Author:
boonebgorges
Message:

Remove Invite noscript support for group invitations screens

Fixes #5281

Props imath

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-template.php

    r8069 r8093  
    33843384        global $invites_template;
    33853385
    3386         return wp_nonce_url( site_url( bp_get_groups_slug() . '/' . $invites_template->invite->group_id . '/invites/remove/' . $invites_template->invite->user->id ), 'groups_invite_uninvite_user' );
     3386        $user_id = intval( $invites_template->invite->user->id );
     3387
     3388        if ( bp_is_current_action( 'create' ) ) {
     3389            $uninvite_url = bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create/step/group-invites/?user_id=' . $user_id;
     3390        } else {
     3391            $uninvite_url = bp_get_group_permalink( groups_get_current_group() ) . 'send-invites/remove/' . $user_id;
     3392        }
     3393
     3394        return wp_nonce_url( $uninvite_url, 'groups_invite_uninvite_user' );
    33873395    }
    33883396
Note: See TracChangeset for help on using the changeset viewer.