Skip to:
Content

bbPress.org

Ticket #2741: 2741.2.diff

File 2741.2.diff, 1.2 KB (added by tharsheblows, 9 years ago)

to include topics - just let me know the next error to fix. ;)

  • src/includes/admin/replies.php

     
    321321                // Get reply author data
    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        = $_POST['hidden_post_status'] != 'draft' ? true : false;
    325325
     326
    326327                // Formally update the reply
    327328                bbp_update_reply( $reply_id, $topic_id, $forum_id, $anonymous_data, $author_id, $is_edit, $reply_to );
    328329
  • src/includes/admin/topics.php

     
    314314                // Get topic author data
    315315                $anonymous_data = bbp_filter_anonymous_post_data();
    316316                $author_id      = bbp_get_topic_author_id( $topic_id );
    317                 $is_edit        = (bool) isset( $_POST['save'] );
     317                $is_edit        = $_POST['hidden_post_status'] != 'draft' ? true : false;
    318318
    319319                // Formally update the topic
    320320                bbp_update_topic( $topic_id, $forum_id, $anonymous_data, $author_id, $is_edit );