[wp-trac] [WordPress Trac] #58617: Post Status label inconsistency in get_post_statuses() and get_post_stati() functions

WordPress Trac noreply at wordpress.org
Sun Jun 25 18:39:23 UTC 2023


#58617: Post Status label inconsistency in get_post_statuses() and get_post_stati()
functions
-------------------------------+-----------------------------
 Reporter:  kaavyaiyer         |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:
 Severity:  minor              |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 Functions {{{get_post_statuses()}}} and {{{get_post_stati()}}} are
 returning different labels for the same post status slug.

 The {{{get_post_statuses()}}} function returns **Pending Review** as the
 label corresponding to the post status with the slug **pending**, whereas
 the {{{get_post_stati()}}} function returns the label **Pending** for the
 same post status slug.

 Please make these labels consistent i.e. both the labels having the slug
 **pending** in each of the functions mentioned above, should be 'Pending
 Review'.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58617>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list