Ticket #3405: xmlrpc.php.2.diff
| File xmlrpc.php.2.diff, 1.2 KB (added by josephscott, 4 years ago) |
|---|
-
xmlrpc.php
1337 1337 $this->set_custom_fields($post_ID, $content_struct['custom_fields']); 1338 1338 } 1339 1339 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 1340 1346 $this->attach_uploads( $post_ID, $post_content ); 1341 1347 1342 1348 logIO('O', "Posted ! ID: $post_ID"); … … 1593 1599 $this->set_custom_fields($post_ID, $content_struct['custom_fields']); 1594 1600 } 1595 1601 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 1596 1608 $this->attach_uploads( $ID, $post_content ); 1597 1609 1598 1610 logIO('O',"(MW) Edited ! ID: $post_ID");
