WordPress.org

Make WordPress Core

Ticket #3405: xmlrpc.php.2.diff

File xmlrpc.php.2.diff, 1.2 KB (added by josephscott, 10 years ago)
  • xmlrpc.php

     
    13371337                        $this->set_custom_fields($post_ID, $content_struct['custom_fields']);
    13381338                }
    13391339
     1340                // Handle enclosures
     1341                $enclosure = $content_struct['enclosure'];
     1342                if( is_array( $enclosure ) && isset( $enclosure['url'] ) && isset( $enclosure['length'] ) && isset( $enclosure['type'] ) ) {
     1343                        add_post_meta( $post_ID, 'enclosure', $enclosure['url'] . "\n" . $enclosure['length'] . "\n" . $enclosure['type'] );
     1344                }
     1345
    13401346                $this->attach_uploads( $post_ID, $post_content );
    13411347
    13421348                logIO('O', "Posted ! ID: $post_ID");
     
    15931599                        $this->set_custom_fields($post_ID, $content_struct['custom_fields']);
    15941600                }
    15951601
     1602                // Handle enclosures
     1603                $enclosure = $content_struct['enclosure'];
     1604                if( is_array( $enclosure ) && isset( $enclosure['url'] ) && isset( $enclosure['length'] ) && isset( $enclosure['type'] ) ) {
     1605                        add_post_meta( $post_ID, 'enclosure', $enclosure['url'] . "\n" . $enclosure['length'] . "\n" . $enclosure['type'] );
     1606                }
     1607
    15961608                $this->attach_uploads( $ID, $post_content );
    15971609
    15981610                logIO('O',"(MW) Edited ! ID: $post_ID");