Make WordPress Core

Changeset 34573


Ignore:
Timestamp:
09/26/2015 04:00:32 AM (9 years ago)
Author:
wonderboymusic
Message:

XML-RPC: In wp_xmlrpc_server::blogger_editPost(), make use of the $publish arg (the 6th arg passed to the method) to specify publish or draft. Restores the arg, which I removed in [31092], because it was unused cruft.

Props mdawaffe.
Fixes #10764.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r34572 r34573  
    45644564     *     @type string $password
    45654565     *     @type string $content
     4566     *     @type bool   $publish
    45664567     * }
    45674568     * @return true|IXR_Error true when done.
     
    45754576        $password = $args[3];
    45764577        $content  = $args[4];
     4578        $publish  = $args[5];
    45774579
    45784580        if ( ! $user = $this->login( $username, $password ) ) {
     
    46054607        $postdata['post_status'] = $actual_post['post_status'];
    46064608        $postdata['post_excerpt'] = $actual_post['post_excerpt'];
     4609        $postdata['post_status'] = $publish ? 'publish' : 'draft';
    46074610
    46084611        $result = wp_update_post( $postdata );
Note: See TracChangeset for help on using the changeset viewer.