Skip to content

Commit 1b01dd7

Browse files
authored
Merge pull request #121 from Codeinwp/fix/issue-120
Replace add_post_meta with update_post_meta
2 parents 3d862ec + 57a1e40 commit 1b01dd7

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)