Changeset 5850
- Timestamp:
- 07/15/2015 10:17:40 PM (9 years ago)
- Location:
- trunk/src/includes/admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/metaboxes.php
r5770 r5850 392 392 // Post ID 393 393 $post_id = get_the_ID(); 394 $status = get_post_status( $post_id ); 394 395 395 396 /** Type ******************************************************************/ … … 411 412 <p> 412 413 <strong class="label"><?php esc_html_e( 'Status:', 'bbpress' ); ?></strong> 414 <input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo esc_attr( ( 'auto-draft' === $status ) ? 'draft' : $status ); ?>" /> 413 415 <label class="screen-reader-text" for="bbp_open_close_topic"><?php esc_html_e( 'Select whether to open or close the topic.', 'bbpress' ); ?></label> 414 416 <?php bbp_form_topic_status_dropdown( array( 'select_id' => 'post_status', 'topic_id' => $post_id ) ); ?> … … 467 469 // Post ID 468 470 $post_id = get_the_ID(); 471 $status = get_post_status( $post_id ); 469 472 470 473 // Get some meta … … 479 482 <p> 480 483 <strong class="label"><?php esc_html_e( 'Status:', 'bbpress' ); ?></strong> 484 <input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo esc_attr( ( 'auto-draft' === $status ) ? 'draft' : $status ); ?>" /> 481 485 <label class="screen-reader-text" for="post_status"><?php esc_html_e( 'Select what status to give the reply.', 'bbpress' ); ?></label> 482 486 <?php bbp_form_reply_status_dropdown( array( 'select_id' => 'post_status', 'reply_id' => $post_id ) ); ?> -
trunk/src/includes/admin/replies.php
r5842 r5850 322 322 $anonymous_data = bbp_filter_anonymous_post_data(); 323 323 $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' ) ); 325 325 326 326 // Formally update the reply -
trunk/src/includes/admin/topics.php
r5829 r5850 316 316 $anonymous_data = bbp_filter_anonymous_post_data(); 317 317 $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' ) ); 319 319 320 320 // Formally update the topic
Note: See TracChangeset
for help on using the changeset viewer.