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

WordPress Trac noreply at wordpress.org
Fri Aug 18 14:15:09 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 Presskopp):

 For clarity let me sum it up:

 The following are existing functions:

 [https://developer.wordpress.org/reference/functions/get_available_post_statuses/
 get_available_post_statuses()] ("Returns all the possible statuses for a
 post type.")

 [https://developer.wordpress.org/reference/functions/get_post_statuses/
 get_post_statuses()] ("Retrieves all of the WordPress supported post
 statuses.")

 [https://developer.wordpress.org/reference/functions/get_post_stati/
 get_post_stati()] ("Gets a list of post statuses.")

 That makes it impossible to rename `get_post_stati()` to
 `get_post_statuses()`, so `get_post_status_list()` could be helpful here.

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


More information about the wp-trac mailing list