Delete cut-and-paste error.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-11-16 18:27:47 +00:00
parent aba1a4437d
commit d0bb17a2f3
1 changed files with 2 additions and 3 deletions

View File

@ -316,11 +316,10 @@ function upgrade_160() {
foreach ($objects as $object) {
$wpdb->query("UPDATE $wpdb->posts SET post_status = 'attachment',
post_mime_type = '$object->post_type',
post_type = '',
guid = '$guid'
post_type = ''
WHERE ID = $object->ID");
$meta = get_post_meta($postid, 'imagedata', true);
$meta = get_post_meta($object->ID, 'imagedata', true);
if ( ! empty($meta['file']) )
add_post_meta($object->ID, '_wp_attached_file', $meta['file']);
}