Changeset 32572 for trunk/src/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 05/24/2015 04:40:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r32569 r32572 1475 1475 } 1476 1476 1477 // convert the date field back to IXR form1477 // Convert the date field back to IXR form. 1478 1478 $post['post_date'] = $this->_convert_date( $post['post_date'] ); 1479 1479 1480 // ignore the existing GMT date if it is empty or a non-GMT date was supplied in $content_struct, 1481 // since _insert_post will ignore the non-GMT date if the GMT date is set 1480 /* 1481 * Ignore the existing GMT date if it is empty or a non-GMT date was supplied in $content_struct, 1482 * since _insert_post() will ignore the non-GMT date if the GMT date is set. 1483 */ 1482 1484 if ( $post['post_date_gmt'] == '0000-00-00 00:00:00' || isset( $content_struct['post_date'] ) ) 1483 1485 unset( $post['post_date_gmt'] ); … … 1500 1502 * @since 3.4.0 1501 1503 * 1502 * @ useswp_delete_post()1504 * @see wp_delete_post() 1503 1505 * 1504 1506 * @param array $args { 1505 1507 * Method parameters, in this order: 1506 1508 * 1507 * @type int $blog_id (unused)1508 * @type string $username 1509 * @type string $password 1510 * @type int $post_id 1509 * @type int $blog_id Blog ID (unused). 1510 * @type string $username Username. 1511 * @type string $password Password. 1512 * @type int $post_id Post ID. 1511 1513 * } 1512 * @return true|IXR_Error true on success1514 * @return true|IXR_Error True on success, IXR_Error instance on failure. 1513 1515 */ 1514 1516 public function wp_deletePost( $args ) {
Note: See TracChangeset
for help on using the changeset viewer.