Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Error: Are you sure you wanted to do that?

@lmstearn

Participant

@artmuns: Totally acknowledge the user problem with expired pages causing this over here, and certainly copying the post-text is the first line of defence, just curious as to what it was in the superseded code that cached the text.

Maybe the following,

add_filter( 'bbp_verify_nonce_request_url', 'my_bbp_verify_nonce_request_url', 999, 1 );
function my_bbp_verify_nonce_request_url( $requested_url )
{
    return 'your_URI' . $_SERVER['REQUEST_URI'];
}

Now the functions.php has been dropped from Twenty Twenty Two and onwards, so might not be possible in the theme, could be a separate plugin, or a request for a cache module.

For caching, use LiteSpeed over here, just added into the ESI Cache section these:

bbp_verify_nonce_request
wp_verify_nonce

Not sure if they are correct, will post back if not. 🙂

Skip to toolbar