Ticket #33014: post.php.patch
File post.php.patch, 1.0 KB (added by , 10 years ago) |
---|
-
post.php
4009 4009 } 4010 4010 4011 4011 /** 4012 * Transition the post status of a post.4012 * Perform action hooks that occur just before the transition the post status of a post. 4013 4013 * 4014 4014 * When a post is saved, the post status is "transitioned" from one status to another, 4015 4015 * though this does not always mean the status has actually changed before and after 4016 * the save. 4016 * the save. This function only fires do_action hooks, it does not actually transition 4017 * the post. 4017 4018 * 4018 4019 * For instance: When publishing a post for the first time, the post status may transition 4019 4020 * from 'draft' – or some other status – to 'publish'. However, if a post is already … … 4022 4023 * 4023 4024 * @since 2.3.0 4024 4025 * 4025 * @param string $new_status Transition to this post status.4026 * @param string $new_status Transitioning to this post status. 4026 4027 * @param string $old_status Previous post status. 4027 4028 * @param WP_Post $post Post data. 4028 4029 */