Ticket #43666: 43666.patch
File 43666.patch, 603 bytes (added by , 7 years ago) |
---|
-
wordpress-importer.php
diff -Naur wordpress-importer.php wordpress-importer.php
825 825 if ( ! $value ) 826 826 $value = maybe_unserialize( $meta['value'] ); 827 827 828 add_post_meta( $post_id, $key, $value ); 828 if ( ! add_post_meta( $post_id, $key, $value, true ) ) { 829 update_post_meta( $post_id, $key, $value ); 830 } 829 831 do_action( 'import_post_meta', $post_id, $key, $value ); 830 832 831 833 // if the post has a featured image, take note of this in case of remap