WordPress.org

Make WordPress Core

Ticket #13917: xmlrpc.2.diff

File xmlrpc.2.diff, 497 bytes (added by josephscott, 9 years ago)
  • wp-includes/class-wp-xmlrpc-server.php

     
    30883088                // Construct the attachment array
    30893089                // attach to post_id 0
    30903090                $post_id = 0;
     3091                if ( !empty( $data['post_id'] ) ) {
     3092                        $post_id = (int) $data['post_id'];
     3093                }
     3094
    30913095                $attachment = array(
    30923096                        'post_title' => $name,
    30933097                        'post_content' => '',