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-templates/bp-legacy/buddypress-functions.php

    r8090 r8093  
    10001000        $user = new BP_Core_User( $friend_id );
    10011001
     1002        $uninvite_url = bp_is_current_action( 'create' ) ? bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create/step/group-invites/?user_id=' . $friend_id : bp_get_group_permalink( $group ) . 'send-invites/remove/' . $friend_id;
     1003
    10021004        echo '<li id="uid-' . $user->id . '">';
    10031005        echo $user->avatar_thumb;
     
    10051007        echo '<span class="activity">' . esc_attr( $user->last_active ) . '</span>';
    10061008        echo '<div class="action">
    1007                 <a class="button remove" href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_groups_slug() . '/' . $_POST['group_id'] . '/invites/remove/' . $user->id, 'groups_invite_uninvite_user' ) . '" id="uid-' . esc_attr( $user->id ) . '">' . __( 'Remove Invite', 'buddypress' ) . '</a>
     1009                <a class="button remove" href="' . wp_nonce_url( $uninvite_url, 'groups_invite_uninvite_user' ) . '" id="uid-' . esc_attr( $user->id ) . '">' . __( 'Remove Invite', 'buddypress' ) . '</a>
    10081010              </div>';
    10091011
Note: See TracChangeset for help on using the changeset viewer.