diff --git src/bp-templates/bp-nouveau/js/buddypress-nouveau.js src/bp-templates/bp-nouveau/js/buddypress-nouveau.js
index 37e74ff66..935cf9c97 100644
|
|
window.bp = window.bp || {}; |
661 | 661 | return false; |
662 | 662 | } |
663 | 663 | |
664 | | // Find the required wpnonce string. |
665 | | // if button element set we'll have our nonce set on a data attr |
666 | | // Check the value & if exists split the string to obtain the nonce string |
667 | | // if no value, i.e false, null then the href attr is used. |
668 | | if ( nonceUrl ) { |
669 | | nonce = nonceUrl.split('?_wpnonce='); |
670 | | nonce = nonce[1]; |
671 | | } else { |
672 | | nonce = self.getLinkParams( target.prop( 'href' ), '_wpnonce' ); |
| 664 | // If the nonceUrl is not set, use the `href` attribute. |
| 665 | if ( ! nonceUrl ) { |
| 666 | nonceUrl = target.prop( 'href' ); |
673 | 667 | } |
674 | 668 | |
| 669 | // Set the nonce. |
| 670 | nonce = self.getLinkParams( nonceUrl, '_wpnonce' ); |
| 671 | |
675 | 672 | // Unfortunately unlike groups |
676 | 673 | // Friends actions does not match the wpnonce |
677 | 674 | var friends_actions_map = { |