Changeset 34573
- Timestamp:
- 09/26/2015 04:00:32 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r34572 r34573 4564 4564 * @type string $password 4565 4565 * @type string $content 4566 * @type bool $publish 4566 4567 * } 4567 4568 * @return true|IXR_Error true when done. … … 4575 4576 $password = $args[3]; 4576 4577 $content = $args[4]; 4578 $publish = $args[5]; 4577 4579 4578 4580 if ( ! $user = $this->login( $username, $password ) ) { … … 4605 4607 $postdata['post_status'] = $actual_post['post_status']; 4606 4608 $postdata['post_excerpt'] = $actual_post['post_excerpt']; 4609 $postdata['post_status'] = $publish ? 'publish' : 'draft'; 4607 4610 4608 4611 $result = wp_update_post( $postdata );
Note: See TracChangeset
for help on using the changeset viewer.