Opened 6 years ago
Closed 6 years ago
#45101 closed enhancement (fixed)
Add additional default labels to get_post_type_labels()
Reported by: | earnjam | Owned by: | danielbachhuber |
---|---|---|---|
Milestone: | 5.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Posts, Post Types | Keywords: | has-patch fixed-5.0 |
Focuses: | rest-api | Cc: |
Description
We need to add some new labels to the post type object to help the post update notices in the new editor accurately reflect the post type being edited.
Required labels are:
- 'Post reverted to draft.'
- 'Post published.'
- 'Post published privately.'
- 'Post scheduled.'
- 'Post updated.'
For additional details, see: https://github.com/WordPress/gutenberg/issues/3315
Attachments (2)
Change History (10)
#4
@
6 years ago
Realized I forgot to update the docs for get_post_type_labels()
, so added that in 45101.2.diff
This ticket was mentioned in Slack in #core by danielbachhuber. View the logs.
6 years ago
#6
@
6 years ago
- Owner set to danielbachhuber
- Resolution set to fixed
- Status changed from new to closed
In 43744:
Note: See
TracTickets for help on using
tickets.
45101.diff has the new labels, but no tests.
@swissspidy What are your thoughts on tests for these? I didn't see any coverage for the other individual labels. Trunk has
getPostTypeLabels.php
, but that's not in 5.0.