Skip to content
Permalink
Browse files

Fixed missing definition.

  • Loading branch information
felixfontein committed Jul 13, 2015
1 parent 96060b3 commit 69393a616f07197f2d5dda1d0a1a143c67ac42cd
Showing with 1 addition and 0 deletions.
  1. +1 −0 nikola/plugins/command/import_wordpress.py
@@ -459,6 +459,7 @@ def import_attachment(self, item, wordpress_namespace):

additional_metadata = item.findall('{{{0}}}postmeta'.format(wordpress_namespace))
if phpserialize and additional_metadata:
source_path = os.path.dirname(url)
for element in additional_metadata:
meta_key = element.find('{{{0}}}meta_key'.format(wordpress_namespace))
if meta_key is not None and meta_key.text == '_wp_attachment_metadata':

0 comments on commit 69393a6

Please sign in to comment.
You can’t perform that action at this time.