Skip to content

Commit

Permalink
Fixed missing definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Jul 13, 2015
1 parent 96060b3 commit 69393a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nikola/plugins/command/import_wordpress.py
Expand Up @@ -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':
Expand Down

0 comments on commit 69393a6

Please sign in to comment.