[wp-trac] [WordPress Trac] #58134: Use correct plural of status

WordPress Trac noreply at wordpress.org
Sat Aug 12 10:35:15 UTC 2023


#58134: Use correct plural of status
--------------------------+------------------------------
 Reporter:  Presskopp     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 Replying to [ticket:58134 Presskopp]:
 > There's also a function
 > {{{
 > get_post_stati()
 > }}}
 >
 > see https://developer.wordpress.org/reference/functions/get_post_stati/
 >
 > c'mon, let's rename it to **get_post_statuses**, while we're on it.

 Just noting that
 [https://developer.wordpress.org/reference/functions/get_post_statuses/
 get_post_statuses()] already exists for a slightly different purpose, so
 `get_post_status_list()` as suggested above might be another option.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58134#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list