Changeset 22277
- Timestamp:
- 10/23/2012 02:08:20 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-xmlrpc-server.php
r22171 r22277 1100 1100 if ( ! $post_data['post_thumbnail'] ) 1101 1101 delete_post_thumbnail( $post_ID ); 1102 elseif ( ! set_post_thumbnail( $post_ID, $post_data['post_thumbnail'] ) ) 1103 return new IXR_Error( 404, __( 'Invalid attachment ID.' ) ); 1102 elseif ( ! get_post( absint( $post_data['post_thumbnail'] ) ) ) 1103 return new IXR_Error( 404, __( 'Invalid attachment ID.' ) ); 1104 set_post_thumbnail( $post_ID, $post_data['post_thumbnail'] ); 1104 1105 unset( $content_struct['post_thumbnail'] ); 1105 1106 }
Note: See TracChangeset
for help on using the changeset viewer.