From 942e313727d1ad886a1024c24fe4a9e8e2e0bb3e Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Wed, 20 Apr 2022 00:12:09 -0400 Subject: New upstream version 8.2.0. --- nikola/plugins/command/import_wordpress.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nikola/plugins/command/import_wordpress.py') diff --git a/nikola/plugins/command/import_wordpress.py b/nikola/plugins/command/import_wordpress.py index 06e00a1..f513e1c 100644 --- a/nikola/plugins/command/import_wordpress.py +++ b/nikola/plugins/command/import_wordpress.py @@ -582,6 +582,11 @@ to def add(our_key, wp_key, is_int=False, ignore_zero=False, is_float=False): if wp_key in image_meta: value = image_meta[wp_key] + if value in ("", b"") and (is_int or is_float): + if ignore_zero: + return + else: + dst_meta[our_key] = 0 if is_int: value = int(value) if ignore_zero and value == 0: -- cgit v1.2.3