Changeset 11969
- Timestamp:
- 09/24/2009 05:13:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r11942 r11969 2283 2283 2284 2284 // find any unattached files 2285 $attachments = $wpdb->get_results( "SELECT ID, guid FROM {$wpdb->posts} WHERE post_parent = ' -1' AND post_type = 'attachment'" );2285 $attachments = $wpdb->get_results( "SELECT ID, guid FROM {$wpdb->posts} WHERE post_parent = '0' AND post_type = 'attachment'" ); 2286 2286 if( is_array( $attachments ) ) { 2287 2287 foreach( $attachments as $file ) { … … 2890 2890 } 2891 2891 // Construct the attachment array 2892 // attach to post_id -12893 $post_id = -1;2892 // attach to post_id 0 2893 $post_id = 0; 2894 2894 $attachment = array( 2895 2895 'post_title' => $name,
Note: See TracChangeset
for help on using the changeset viewer.