Skip to content

Commit 2eaea2b

Browse files
authored
release: fixes
* Replace add_post_meta function with update_post_meta function to avoid duplicate meta keys.
2 parents 083216d + 1b01dd7 commit 2eaea2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/Importers/WP/WP_Import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ private function process_posts() {
540540
) ) {
541541
$value = $this->replace_image_urls( $value );
542542
}
543-
add_post_meta( $post_id, $key, $value );
543+
update_post_meta( $post_id, $key, $value );
544544
do_action( 'import_post_meta', $post_id, $key, $value );
545545
// if the post has a featured image, take note of this in case of remap
546546
if ( '_thumbnail_id' == $key ) {

0 commit comments

Comments
 (0)