Opened 14 years ago
Last modified 7 years ago
#23169 new enhancement
Introduce register_post_status_for_object_type
| Reported by: | kovshenin | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: |
Description
Similar to what register_taxonomy_for_object_type does with taxonomies.
Attachments (1)
Change History (15)
#7
in reply to: ↑ 5
@
14 years ago
- Cc 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
IMHO this should go to #12706.