Files
WordPress/wp-includes
Drew Jaynes 542a4bd98b Update the descriptions for transition_post_status() and the {$new_stats}_{$post->post_type} hook with more information about the expected behavior of transitioning post statuses.
In some cases, the values of `$old_status` and `$new_status` may be the same thing before and after a post status is "transitioned". An example of this would be the scenario where a published post is being updated: the status before and after the update both equal 'publish'.

Further, the documentation clarifies that if the intent is to only execute code when initially transitioningto a post status from something else, the 'transition_post_status' hook should be used instead of one of the dynamic hooks to avoid confusion.

Props Idealien for the initial patch.
Fixes #31099.

Built from https://develop.svn.wordpress.org/trunk@31461


git-svn-id: http://core.svn.wordpress.org/trunk@31442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-14 09:11:28 +00:00
..
2014-09-11 19:07:17 +00:00
2014-11-25 06:12:22 +00:00
2015-01-16 19:03:23 +00:00
2014-11-30 23:24:25 +00:00
2015-01-16 16:07:23 +00:00
2014-11-30 22:56:25 +00:00
2013-10-30 14:39:10 +00:00