[wp-trac] [WordPress Trac] #58134: Use correct plural of status
WordPress Trac
noreply at wordpress.org
Fri Aug 18 23:37:30 UTC 2023
#58134: Use correct plural of status
-------------------------------+------------------------------
Reporter: Presskopp | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
-------------------------------+------------------------------
Comment (by manfcarlo):
Why would it be impossible? What about preserving the existing behaviour
of `get_post_statuses` when no arguments are provided, but enhancing it
with the same parameters of `get_post_stati` and then turning
`get_post_stati` into a wrapper function? Noting that the output of
`get_post_stati` when no arguments are provided is not the same as the
output of `get_post_statuses`, the default arguments could be slightly
tweaked for `get_post_statuses` to preserve the old output (e.g. the
default value of `$args` could specify only built-in statuses.) Would that
work?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58134#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list