Don't import _wp_attachment_metadata. It is regenerated when the attachment is imported.
git-svn-id: https://develop.svn.wordpress.org/trunk@11842 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
782977afbf
commit
051e34e38f
|
@ -688,8 +688,8 @@ class WP_Import {
|
||||||
}
|
}
|
||||||
|
|
||||||
function is_valid_meta_key($key) {
|
function is_valid_meta_key($key) {
|
||||||
// skip _wp_attached_file metadata since we'll regenerate it from scratch
|
// skip attachment metadata since we'll regenerate it from scratch
|
||||||
if ( $key == '_wp_attached_file' )
|
if ( $key == '_wp_attached_file' || $key == '_wp_attachment_metadata' )
|
||||||
return false;
|
return false;
|
||||||
return $key;
|
return $key;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue