[wp-trac] [WordPress Trac] #22241: inconsistence with transition_post_status with CPT
WordPress Trac
noreply at wordpress.org
Sun Oct 21 10:03:32 UTC 2012
#22241: inconsistence with transition_post_status with CPT
-----------------------------+--------------------------
Reporter: thomask | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Post Types
Version: | Severity: normal
Keywords: |
-----------------------------+--------------------------
im playing with transition_post_status filter and it seems it returns
different values for posts+pages and for custom post types - for posts and
pages it hase those values:
new_status:inherit
old_status:new
and the $post is the auto draft. Then this function is called twice,
secondly for the saved post with new post status
for CPT it returns the actual old status and new status and $post is the
actual post and it is called just once
actually I prefer the way it works for CPT as it actualy returns the old
and new post status, what should be the proper function. But it seems,
that the problem is somewhere deeper, e.g. that you are saving posts&pages
twice, but not doing it for CPT
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22241>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list