Make WordPress Core

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)

23169.patch (1.6 KB ) - added by SergeyBiryukov 14 years ago.

Download all attachments as: .zip

Change History (15)

#1 @sirzooro
14 years ago

IMHO this should go to #12706.

#2 @sabreuse
14 years ago

  • Cc sabreuse added

#3 @sirzooro
14 years ago

  • Cc sirzooro added

#4 @DrewAPicture
14 years ago

  • Cc DrewAPicture added

#5 follow-up: @SergeyBiryukov
14 years ago

Took a stab in 23169.patch.

#6 @greenshady
14 years ago

  • Cc justin@… added

#7 in reply to: ↑ 5 @kovshenin
14 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.

#8 @sc0ttkclark
14 years ago

  • Cc lol@… added

#9 @maor
14 years ago

  • Cc maorhaz@… added

#10 @mordauk
13 years ago

  • Cc pippin@… added

#11 @SergeyBiryukov
13 years ago

  • Milestone 3.6Future Release

#12 @soulseekah
13 years ago

  • Cc gennady@… added

#13 @nacin
13 years ago

  • Component GeneralPost Types

#14 @chriscct7
11 years ago

  • Keywords editorial-flow removed
Note: See TracTickets for help on using tickets.