Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Add Friend – not adding


Burt Adsit
Participant

@burtadsit

The only think I can think of Andy is that the form nonce in the directory is getting mixed up with the link nonce.

function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) {

if ( $query_arg )

$nonce = $_REQUEST[$query_arg];

else

$nonce = $_REQUEST ? $_REQUEST : $_REQUEST;

If $action is from the form and _wpnonce is from the link. nonce will fail. I can’t find bp setting _ajax_nonce anywhere.

This only fails in the directories where a form with it’s own nonce wraps the link nonce.

Skip to toolbar