Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix unpublish status problem

  • Loading branch information...
commit 719f51d94f36ae0ebf7ae1611a1a1ed9a36868e7 1 parent dcbbe79
@huxuan huxuan authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  exitwp.py
View
3  exitwp.py
@@ -257,9 +257,10 @@ def get_attachment_path(src, dir, dir_prefix='a'):
'title': i['title'],
'date': i['date'],
'slug': i['slug'],
- 'status': i['status'],
'wordpress_id': i['wp_id'],
}
+ if i['status'] != u'publish':
+ yaml_header['published'] = False
if i['type'] == 'post':
i['uid'] = get_item_uid(i, date_prefix=True)
Please sign in to comment.
Something went wrong with that request. Please try again.