Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/15/2015 10:17:40 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Admin: Add hidden_post_status field back to topic & reply metaboxes, and use draft or current post status as value.

This changeset fixes a bug that caused topics & replies to be marked as edited when moderated via wp-admin.

Hat-tip tharsheblows. Fixes #2741.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/replies.php

    r5842 r5850  
    322322        $anonymous_data = bbp_filter_anonymous_post_data();
    323323        $author_id      = bbp_get_reply_author_id( $reply_id );
    324         $is_edit        = (bool) isset( $_POST['save'] );
     324        $is_edit        = ( isset( $_POST['hidden_post_status'] ) && ( $_POST['hidden_post_status'] !== 'draft' ) );
    325325
    326326        // Formally update the reply
Note: See TracChangeset for help on using the changeset viewer.