diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 8ef72f89bc..d86ae052a0 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -4563,6 +4563,7 @@ class wp_xmlrpc_server extends IXR_Server { * @type string $username * @type string $password * @type string $content + * @type bool $publish * } * @return true|IXR_Error true when done. */ @@ -4574,6 +4575,7 @@ class wp_xmlrpc_server extends IXR_Server { $username = $args[2]; $password = $args[3]; $content = $args[4]; + $publish = $args[5]; if ( ! $user = $this->login( $username, $password ) ) { return $this->error; @@ -4604,6 +4606,7 @@ class wp_xmlrpc_server extends IXR_Server { $postdata['post_category'] = xmlrpc_getpostcategory( $content ); $postdata['post_status'] = $actual_post['post_status']; $postdata['post_excerpt'] = $actual_post['post_excerpt']; + $postdata['post_status'] = $publish ? 'publish' : 'draft'; $result = wp_update_post( $postdata ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 70dc2a0c02..0de8983499 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34572'; +$wp_version = '4.4-alpha-34573'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.