Tweak for #2040 to add filter and default status for posts to 'publish'