Ticket #15098: xmlrpc_patch.diff
File xmlrpc_patch.diff, 820 bytes (added by , 15 years ago) |
---|
-
wp-includes/class.wp-xmlrpc-server.php
2736 2736 $id = wp_insert_attachment( $attachment, $upload[ 'file' ], $post_id ); 2737 2737 wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $upload['file'] ) ); 2738 2738 2739 return apply_filters( 'wp_handle_upload', array( 'file' => $name, 'url' => $upload[ 'url' ], 'type' => $type ), 'upload' );2739 return apply_filters( 'wp_handle_upload', array( 'file' => $name, 'url' => $upload[ 'url' ], 'type' => $type, 'id' => $id ), 'upload' ); 2740 2740 } 2741 2741 2742 2742 /* MovableType API functions … … 3243 3243 return $pingbacks; 3244 3244 } 3245 3245 } 3246 ?> 3247 No newline at end of file 3246 ?>