Changeset 7847 for trunk/xmlrpc.php
- Timestamp:
- 04/28/2008 04:15:23 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r7645 r7847 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 … … 1593 1599 $this->set_custom_fields($post_ID, $content_struct['custom_fields']); 1594 1600 } 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 } 1595 1607 1596 1608 $this->attach_uploads( $ID, $post_content );
Note: See TracChangeset
for help on using the changeset viewer.