Skip to:
Content

BuddyPress.org

Changeset 12092


Ignore:
Timestamp:
05/15/2018 10:01:20 PM (7 years ago)
Author:
imath
Message:

BP Nouveau: use a link for the awaiting response friendship button.

This makes sure the logged in user can view and reply to his friendship requests.

Props ankit-k-gupta, DJPaul, hnla

Fixes #7831

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/members/template-tags.php

    r12082 r12092  
    365365
    366366                    // If button element set add nonce link to data attr
    367                     if ( 'button' === $button_element ) {
     367                    if ( 'button' === $button_element && 'awaiting_response' !== $button_args['id'] ) {
    368368                        $buttons['member_friendship']['button_attr']['data-bp-nonce'] = $button_args['link_href'];
    369369                    } else {
     370                        $buttons['member_friendship']['button_element'] = 'a';
    370371                        $buttons['member_friendship']['button_attr']['href'] = $button_args['link_href'];
    371372                    }
Note: See TracChangeset for help on using the changeset viewer.