Ticket #18684: xmlrpc.diff

File xmlrpc.diff, 876 bytes (added by josephscott, 17 months ago)
  • wp-includes/class-wp-xmlrpc-server.php

     
    30853085                        logIO('O', '(MW) ' . $errorString); 
    30863086                        return new IXR_Error(500, $errorString); 
    30873087                } 
     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 
    30883099                // Construct the attachment array 
    30893100                // attach to post_id 0 
    30903101                $post_id = 0; 
    30913102                $attachment = array( 
    30923103                        'post_title' => $name, 
    3093                         'post_content' => '', 
     3104                        'post_excerpt' => $caption, 
     3105                        'post_content' => $description, 
    30943106                        'post_type' => 'attachment', 
    30953107                        'post_parent' => $post_id, 
    30963108                        'post_mime_type' => $type,