Changeset 8600 for trunk/xmlrpc.php
- Timestamp:
- 08/09/2008 05:36:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r8543 r8600 1014 1014 // We've got all the data -- post it: 1015 1015 $comment = compact('comment_ID', 'comment_content', 'comment_approved', 'comment_date', 'comment_date_gmt', 'comment_author', 'comment_author_email', 'comment_author_url'); 1016 1016 1017 1017 $result = wp_update_comment($comment); 1018 1018 if ( is_wp_error( $result ) ) … … 1093 1093 1094 1094 do_action('xmlrpc_call', 'wp.newComment'); 1095 1095 1096 1096 return wp_new_comment($comment); 1097 1097 } … … 1882 1882 } 1883 1883 1884 // Handle enclosures 1885 $enclosure = $content_struct['enclosure']; 1886 if( is_array( $enclosure ) && isset( $enclosure['url'] ) && isset( $enclosure['length'] ) && isset( $enclosure['type'] ) ) { 1884 // Handle enclosures 1885 $enclosure = $content_struct['enclosure']; 1886 if( is_array( $enclosure ) && isset( $enclosure['url'] ) && isset( $enclosure['length'] ) && isset( $enclosure['type'] ) ) { 1887 1887 add_post_meta( $post_ID, 'enclosure', $enclosure['url'] . "\n" . $enclosure['length'] . "\n" . $enclosure['type'] ); 1888 } 1888 } 1889 1889 1890 1890 $this->attach_uploads( $post_ID, $post_content ); … … 2150 2150 } 2151 2151 2152 // Handle enclosures 2153 $enclosure = $content_struct['enclosure']; 2154 if( is_array( $enclosure ) && isset( $enclosure['url'] ) && isset( $enclosure['length'] ) && isset( $enclosure['type'] ) ) { 2152 // Handle enclosures 2153 $enclosure = $content_struct['enclosure']; 2154 if( is_array( $enclosure ) && isset( $enclosure['url'] ) && isset( $enclosure['length'] ) && isset( $enclosure['type'] ) ) { 2155 2155 add_post_meta( $post_ID, 'enclosure', $enclosure['url'] . "\n" . $enclosure['length'] . "\n" . $enclosure['type'] ); 2156 } 2156 } 2157 2157 2158 2158 $this->attach_uploads( $ID, $post_content );
Note: See TracChangeset
for help on using the changeset viewer.