$wpdb->posts,
array
( 'post_status' => 'attachment',
'post_mime_type' =>
$object->post_type,
'post_type' => '',
),
array
( 'ID' =>
$object->ID
) );
$meta =
get_post_meta( $object->ID, 'imagedata', true
);
if ( !
empty( $meta['file'
] ) ) { update_attached_file( $object->ID,
$meta['file'
] );
} } }}/**
* Execute changes made in WordPress 2.1.
*
* @ignore
* @since 2.1.0
*
* @global int $wp_current_db_version The old (current) database version.
* @global wpdb $wpdb WordPress database abstraction object.
*/