Ticket #18684: xmlrpc.diff
| File xmlrpc.diff, 876 bytes (added by josephscott, 17 months ago) |
|---|
-
wp-includes/class-wp-xmlrpc-server.php
3085 3085 logIO('O', '(MW) ' . $errorString); 3086 3086 return new IXR_Error(500, $errorString); 3087 3087 } 3088 3089 $caption = ''; 3090 if ( isset( $data['caption'] ) ) { 3091 $caption = $data['caption']; 3092 } 3093 3094 $description = ''; 3095 if ( isset( $data['description'] ) ) { 3096 $description = $data['description']; 3097 } 3098 3088 3099 // Construct the attachment array 3089 3100 // attach to post_id 0 3090 3101 $post_id = 0; 3091 3102 $attachment = array( 3092 3103 'post_title' => $name, 3093 'post_content' => '', 3104 'post_excerpt' => $caption, 3105 'post_content' => $description, 3094 3106 'post_type' => 'attachment', 3095 3107 'post_parent' => $post_id, 3096 3108 'post_mime_type' => $type,
