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
This commit is contained in:
parent
be026258fa
commit
58f9fb3e13
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue