Changeset 12890
- Timestamp:
- 04/17/2021 08:31:38 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/js/buddypress-nouveau.js
r12856 r12890 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' ); 673 } 664 // If the nonceUrl is not set, use the `href` attribute. 665 if ( ! nonceUrl ) { 666 nonceUrl = target.prop( 'href' ); 667 } 668 669 // Set the nonce. 670 nonce = self.getLinkParams( nonceUrl, '_wpnonce' ); 674 671 675 672 // Unfortunately unlike groups
Note: See TracChangeset
for help on using the changeset viewer.