Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/19/2012 07:31:01 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Add nonces to admin area metabox saves, to avoid accidentally running save routines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-admin/bbp-metaboxes.php

    r3714 r3814  
    315315
    316316    <?php
    317 
     317    wp_nonce_field( 'bbp_forum_metabox_save', 'bbp_forum_metabox' );
    318318    do_action( 'bbp_forum_metabox', $post_id );
    319319}
     
    358358
    359359    <?php
    360 
     360    wp_nonce_field( 'bbp_topic_metabox_save', 'bbp_topic_metabox' );
    361361    do_action( 'bbp_topic_metabox', $post_id );
    362362}
     
    429429
    430430    <?php
    431 
     431    wp_nonce_field( 'bbp_reply_metabox_save', 'bbp_reply_metabox' );
    432432    do_action( 'bbp_reply_metabox', $post_id );
    433433}
Note: See TracChangeset for help on using the changeset viewer.