Fixed Wordpress import when importing WXR files above version 1.1. #187

Merged
merged 1 commit into from Nov 6, 2013

2 participants

@geekman

When the WXR version is >1.1, the first loop iteration will try with a non-existent wpns and item.find('%spost_type' % wpns) is None, hence .text will raise an exception.

The WXR that I exported has all types of items, hence it's more flexible to assign the post type, then filter for post and page types later.

@geekman geekman Fixed Wordpress import when importing WXR files above version 1.1.
Also handle all-in-one WXR files by importing only pages and posts.
243aa07
@posativ posativ merged commit e2b81aa into posativ:master Nov 6, 2013

1 check failed

Details default The Travis CI build failed
@posativ
Owner

Looks good, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment