Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/27/2018 06:02:12 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Forms: include forum/topic ID in nonce checks.

This change adds in missing object IDs, fixing a bug causing form content to be lost when an error had occurred.

Props wpdennis. Fixes #3209.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/forums/template.php

    r6830 r6837  
    25302530        }
    25312531
    2532         // Creating a new topic
     2532        // Creating a new forum
    25332533        if ( bbp_verify_nonce_request( 'bbp-new-forum' ) ) {
    25342534                return true;
    25352535        }
    25362536
    2537         // Editing an existing topic
    2538         if ( bbp_verify_nonce_request( 'bbp-edit-forum' ) ) {
     2537        // Editing an existing forum
     2538        if ( bbp_verify_nonce_request( 'bbp-edit-forum_' . bbp_get_forum_id() ) ) {
    25392539                return true;
    25402540        }
Note: See TracChangeset for help on using the changeset viewer.