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/topics.php

    r5829 r5850  
    316316        $anonymous_data = bbp_filter_anonymous_post_data();
    317317        $author_id      = bbp_get_topic_author_id( $topic_id );
    318         $is_edit        = (bool) isset( $_POST['save'] );
     318        $is_edit        = ( isset( $_POST['hidden_post_status'] ) && ( $_POST['hidden_post_status'] !== 'draft' ) );
    319319
    320320        // Formally update the topic
Note: See TracChangeset for help on using the changeset viewer.