From 58f9fb3e13516357061649f8ecb84252f121c6cf Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 19 Aug 2009 21:37:47 +0000 Subject: [PATCH] Don't import _wp_attachment_metadata. It is regenerated when the attachment is imported. git-svn-id: http://svn.automattic.com/wordpress/trunk@11842 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/import/wordpress.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/import/wordpress.php b/wp-admin/import/wordpress.php index b6c4d960e5..ddc2004f57 100644 --- a/wp-admin/import/wordpress.php +++ b/wp-admin/import/wordpress.php @@ -688,8 +688,8 @@ class WP_Import { } function is_valid_meta_key($key) { - // skip _wp_attached_file metadata since we'll regenerate it from scratch - if ( $key == '_wp_attached_file' ) + // skip attachment metadata since we'll regenerate it from scratch + if ( $key == '_wp_attached_file' || $key == '_wp_attachment_metadata' ) return false; return $key; }