WordPress.org

Make WordPress Core

Ticket #13917: 13917-refresh.diff

File 13917-refresh.diff, 503 bytes (added by ericmann, 6 years ago)

Refresh patch to match latest version of trunk.

  • wp-includes/class-wp-xmlrpc-server.php

     
    37273727                // Construct the attachment array
    37283728                // attach to post_id 0
    37293729                $post_id = 0;
     3730                if ( ! empty( $data['post_id'] ) ) {
     3731                        $post_id = (int) $data['post_id'];
     3732                }
     3733
    37303734                $attachment = array(
    37313735                        'post_title' => $name,
    37323736                        'post_content' => '',