Make WordPress Core

Changeset 20321


Ignore:
Timestamp:
03/29/2012 11:06:17 AM (12 years ago)
Author:
westi
Message:

XMLRPC: Fix the featured image support in mw_newPost to use the correct variable names. See #18429 and [UT592].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r20305 r20321  
    37543754            $this->set_custom_fields($post_ID, $content_struct['custom_fields']);
    37553755
    3756         if ( isset ( $post_data['wp_featured_image'] ) ) {
    3757             if ( set_post_thumbnail( $post_ID, $post_data['wp_featured_image'] ) === false )
     3756        if ( isset ( $content_struct['wp_featured_image'] ) ) {
     3757            if ( set_post_thumbnail( $post_ID, $content_struct['wp_featured_image'] ) === false )
    37583758                return new IXR_Error( 404, __( 'Invalid attachment ID.' ) );
    37593759
Note: See TracChangeset for help on using the changeset viewer.