Make WordPress Core

Opened 10 months ago

Last modified 10 months ago

#58617 new defect (bug)

Post Status label inconsistency in get_post_statuses() and get_post_stati() functions

Reported by: kaavyaiyer's profile kaavyaiyer Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version:
Component: Posts, Post Types Keywords: has-patch
Focuses: Cc:

Description

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'.

Change History (1)

This ticket was mentioned in PR #4693 on WordPress/wordpress-develop by @kaavyaiyer.


10 months ago
#1

  • Keywords has-patch added

Fixes : https://core.trac.wordpress.org/ticket/58617#ticket

Changed the label for post status pending from Pending to Pending Review in get_post_stati() funnction to make it consistent with label for post status pending get_post_statuses() function

Note: See TracTickets for help on using tickets.