Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use 'publish' post_status when querying posts for Stats endpoint.
Previously, the post_status logic was: if the default "draft" post status is something other than "draft", use that. Otherwise, use "publish". This must be an error, since it implies that using a non- default draft status means that you only want to count drafts in your stats. Instead, we always want to count published posts only. See #933.
- Loading branch information