[wp-trac] [WordPress Trac] #31099: Hook action on publishing custom post type also firing on update
WordPress Trac
noreply at wordpress.org
Sat Feb 14 03:31:26 UTC 2015
#31099: Hook action on publishing custom post type also firing on update
----------------------------------------+------------------------------
Reporter: yosmc | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.1
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug | Focuses: docs
----------------------------------------+------------------------------
Comment (by Idealien):
Replying to [comment:3 DrewAPicture]:
> One thing we could do here is adjust the docs for the
`{$new_status}_{$post->post_type}`, `{$old_status}_to_{$new_status}`, and
`transition_post_status` hooks to reflect the expected behavior of the
post status not changing when published posts are updated.
good-first-bug meet my-first-patch :)
I submit 31099Docs.patch which adds details for publish_{$post->type}
suggesting transition_post_status which answers the scenario of the
original defect.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31099#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list