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:
parent
aba1a4437d
commit
d0bb17a2f3
|
@ -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']);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue