Changeset 20322
- Timestamp:
- 03/29/2012 11:59:51 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-xmlrpc-server.php
r20321 r20322 3976 3976 } 3977 3977 3978 $post_title = isset( $content_struct['title'] ) ? $content_struct['title'] : null; 3979 $post_content = isset( $content_struct['description'] ) ? $content_struct['description'] : null; 3978 if ( isset( $content_struct['title'] ) ) 3979 $post_title = $content_struct['title']; 3980 3981 if ( isset( $content_struct['description'] ) ) 3982 $post_content = $content_struct['description']; 3980 3983 3981 3984 $post_category = array(); … … 3989 3992 } 3990 3993 3991 $post_excerpt = isset( $content_struct['mt_excerpt'] ) ? $content_struct['mt_excerpt'] : null; 3992 $post_more = isset( $content_struct['mt_text_more'] ) ? $content_struct['mt_text_more'] : null; 3994 if ( isset( $content_struct['mt_excerpt'] ) ) 3995 $post_excerpt = $content_struct['mt_excerpt']; 3996 3997 if ( isset( $content_struct['mt_text_more'] ) ) 3998 $post_more = $content_struct['mt_text_more']; 3993 3999 3994 4000 $post_status = $publish ? 'publish' : 'draft'; … … 4061 4067 $this->set_custom_fields($post_ID, $content_struct['custom_fields']); 4062 4068 4063 if ( isset ( $ post_data['wp_featured_image'] ) ) {4069 if ( isset ( $content_struct['wp_featured_image'] ) ) { 4064 4070 // empty value deletes, non-empty value adds/updates 4065 if ( empty( $ post_data['wp_featured_image'] ) ) {4071 if ( empty( $content_struct['wp_featured_image'] ) ) { 4066 4072 delete_post_thumbnail( $post_ID ); 4067 } 4068 else { 4069 if ( set_post_thumbnail( $post_ID, $post_data['wp_featured_image'] ) === false ) 4073 } else { 4074 if ( set_post_thumbnail( $post_ID, $content_struct['wp_featured_image'] ) === false ) 4070 4075 return new IXR_Error( 404, __( 'Invalid attachment ID.' ) ); 4071 4076 }
Note: See TracChangeset
for help on using the changeset viewer.