Changeset 19873
- Timestamp:
- 02/08/2012 05:00:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-xmlrpc-server.php
r19869 r19873 599 599 unset( $content_struct['ID'] ); 600 600 601 return $this->_ wp_insertPost( $user, $content_struct );601 return $this->_insert_post( $user, $content_struct ); 602 602 } 603 603 … … 612 612 * Helper method for wp_newPost and wp_editPost, containing shared logic. 613 613 */ 614 function _ wp_insertPost( $user, $content_struct ) {614 function _insert_post( $user, $content_struct ) { 615 615 $defaults = array( 'post_status' => 'draft', 'post_type' => 'post', 'post_author' => 0, 616 616 'post_password' => '', 'post_excerpt' => '', 'post_content' => '', 'post_title' => '', 'sticky' => 0 ); … … 858 858 do_action( 'xmlrpc_call', 'wp.editPost' ); 859 859 860 // User Capabilities are checked in _ wp_insertPost.860 // User Capabilities are checked in _insert_post. 861 861 862 862 $post = get_post( $post_id, ARRAY_A ); … … 869 869 870 870 // ignore the existing GMT date if it is empty or a non-GMT date was supplied in $content_struct, 871 // since _ wp_insertPost will ignore the non-GMT date if the GMT date is set871 // since _insert_post will ignore the non-GMT date if the GMT date is set 872 872 if ( $post['post_date_gmt'] == '0000-00-00 00:00:00' || isset( $content_struct['post_date'] ) ) 873 873 unset( $post['post_date_gmt'] ); … … 878 878 $merged_content_struct = array_merge( $post, $content_struct ); 879 879 880 $retval = $this->_ wp_insertPost( $user, $merged_content_struct );880 $retval = $this->_insert_post( $user, $merged_content_struct ); 881 881 if ( $retval instanceof IXR_Error ) 882 882 return $retval;
Note: See TracChangeset
for help on using the changeset viewer.