Skip to content

Commit fe417eb

Browse files
committed
Fix network connection push draft. #110
1 parent 29c3d91 commit fe417eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

includes/push-ui.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ function ajax_push() {
157157
$push_args['remote_post_id'] = (int) $connection_map['internal'][ (int) $connection['id'] ]['post_id'];
158158
}
159159

160-
if ( ! empty( $_POST['post_status'] ) ) {
161-
$push_args['post_status'] = $_POST['post_status'];
160+
if ( ! empty( $_POST['draft'] ) ) {
161+
$push_args['post_status'] = 'draft';
162162
}
163163

164164
$remote_id = $internal_connection->push( intval( $_POST['post_id'] ), $push_args );

0 commit comments

Comments
 (0)