Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace get_post_statuses() with get_post_stati() #507

Merged
merged 4 commits into from
Jun 27, 2023
Merged

Conversation

Sidsector9
Copy link
Member

Description of the Change

This PR adds a new function get_all_post_statuses() that returns the core post statuses + custom post statuses registered using register_post_status().

Closes #500

How to test the Change

Verify post statuses settings under ClassifAI

Changelog Entry

Changed - Added utility method to retrieve custom post statuses in addition to the core post statuses.

Credits

Props @dkotter @Sidsector9

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@Sidsector9 Sidsector9 requested review from a team, dkotter and jeffpaul as code owners June 23, 2023 19:21
@Sidsector9 Sidsector9 self-assigned this Jun 23, 2023
@jeffpaul jeffpaul added this to the 2.2.2 milestone Jun 23, 2023
@dkotter dkotter merged commit adef168 into develop Jun 27, 2023
12 checks passed
@dkotter dkotter deleted the upkeep/500 branch June 27, 2023 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update usage of get_post_statuses to get_post_stati
3 participants