wordpress is weird thanks surrealroad
Moved two functions from comments to discourse

(so they don't get defined twice)
Merge pull request #19 from nicksahler/master

Moved functions
Prevents custom post types from being published to Discourse (if needed)

This forcibly prevents custom post types (for example, as used by some wordpress plugins) from being published to Discourse.

It's a little heavy-handed, because it essentially blocks _all_ custom posts from being published, which might actually be desired behaviour in some situations. 

It might also not be necessary, for example I just tried using the "Liveblogging" plugin without this fix, which didn't actually publish anything to Discourse even with the option checked, which may mean it's down to how the custom posts are implemented.

I leave it to someone with more wp plugin experience to chime in, and I'll do some additional testing.
fix api to match new api
Merge pull request #20 from surrealroad/patch-3

Prevents custom post types from being published to Discourse (if needed)
Missed "self" context from pull request

Fix for
Fatal error: Call to undefined function is_custom_post_type()
Merge pull request #21 from surrealroad/patch-4

Missed "self" context from pull request
resync with original