Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/01/2011 01:37:23 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Prevent poisoning of forum/topic/reply data when marking posts as trash/spam. Fixes issue where anonymous user data would get purged when post status was changed from an admin area post-row.

File:
1 edited

Legend:

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

    r3274 r3286  
    227227            return $reply_id;
    228228
     229        // Bail if not a post request
     230        if ( 'POST' != strtoupper( $_SERVER['REQUEST_METHOD'] ) )
     231            return $reply_id;
     232
    229233        // Current user cannot edit this reply
    230234        if ( !current_user_can( 'edit_reply', $reply_id ) )
     
    298302        // Bail if no post_id
    299303        if ( empty( $post_id ) )
     304            return $post_id;
     305
     306        // Bail if not a post request
     307        if ( 'POST' != strtoupper( $_SERVER['REQUEST_METHOD'] ) )
    300308            return $post_id;
    301309
Note: See TracChangeset for help on using the changeset viewer.