Ticket #13917: xmlrpc.diff

File xmlrpc.diff, 362 bytes (added by djzone, 23 months ago)
  • xmlrpc.php

    old new  
    28102810                // Construct the attachment array 
    28112811                // attach to post_id 0 
    28122812                $post_id = 0; 
     2813                 
     2814                if (!empty($data['post_id'])) $post_id = (int) $data['post_id']; 
     2815                 
    28132816                $attachment = array( 
    28142817                        'post_title' => $name, 
    28152818                        'post_content' => '',