Skip to content

Commit 13c8981

Browse files
author
bighug
committed
Fix: Answer status auto publish when update answer
1 parent bc892d8 commit 13c8981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/actions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ function dwqa_ajax_create_update_answer_editor(){
831831
<?php } ?>
832832
</p>
833833
<div class="dwqa-privacy">
834-
<input type="hidden" name="privacy" value="publish">
834+
<input type="hidden" name="privacy" value="<?php echo $answer->post_status ?>">
835835
<span class="dwqa-change-privacy">
836836
<div class="dwqa-btn-group">
837837
<button type="button" class="dropdown-toggle" ><span><?php echo 'private' == get_post_status() ? '<i class="fa fa-lock"></i> '.__('Private','dwqa') : '<i class="fa fa-globe"></i> '.__('Public','dwqa'); ?></span> <i class="fa fa-caret-down"></i></button>

0 commit comments

Comments
 (0)