From f7ef53292c0cec5679a04965847bf7ea80dee08a Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 29 Mar 2012 11:06:17 +0000 Subject: [PATCH] XMLRPC: Fix the featured image support in mw_newPost to use the correct variable names. See #18429 and [UT592]. git-svn-id: https://develop.svn.wordpress.org/trunk@20321 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-wp-xmlrpc-server.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index d1af43e769..ed00042235 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -3753,8 +3753,8 @@ class wp_xmlrpc_server extends IXR_Server { if ( isset($content_struct['custom_fields']) ) $this->set_custom_fields($post_ID, $content_struct['custom_fields']); - if ( isset ( $post_data['wp_featured_image'] ) ) { - if ( set_post_thumbnail( $post_ID, $post_data['wp_featured_image'] ) === false ) + if ( isset ( $content_struct['wp_featured_image'] ) ) { + if ( set_post_thumbnail( $post_ID, $content_struct['wp_featured_image'] ) === false ) return new IXR_Error( 404, __( 'Invalid attachment ID.' ) ); unset( $content_struct['wp_featured_image'] );