Opened 13 years ago
Last modified 7 years ago
#23169 new enhancement
Introduce register_post_status_for_object_type
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Posts, Post Types | Keywords: | needs-patch |
| Focuses: | Cc: |
Description
Similar to what register_taxonomy_for_object_type does with taxonomies.
Attachments (1)
Change History (15)
#7
in reply to:
↑ 5
@
13 years ago
- Cc kovshenin added
Replying to SergeyBiryukov: In 23169.patch you set the default post types to post and page, but there may be existing plugins that rely on their registered post status to apply to all post types, including custom post types. For backwards compatibility, I think that if the post_type/object_type argument is omitted in register_post_status, we should register for all post statuses, which can also be tricky, because at the time of calling, some post types might not be registered yet.
Note: See
TracTickets for help on using
tickets.
IMHO this should go to #12706.