Ticket #36603: 36603.patch
File 36603.patch, 1000 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/post.php
3623 3623 if ( 'publish' == $post->post_status ) 3624 3624 return; 3625 3625 3626 $post_before = $post; 3627 3626 3628 $wpdb->update( $wpdb->posts, array( 'post_status' => 'publish' ), array( 'ID' => $post->ID ) ); 3627 3629 3628 3630 clean_post_cache( $post->ID ); … … 3631 3633 $post->post_status = 'publish'; 3632 3634 wp_transition_post_status( 'publish', $old_status, $post ); 3633 3635 3636 $post_after = $post; 3637 3634 3638 /** This action is documented in wp-includes/post.php */ 3635 3639 do_action( 'edit_post', $post->ID, $post ); 3636 3640 3637 3641 /** This action is documented in wp-includes/post.php */ 3642 do_action( 'post_updated', $post->ID, $post_after, $post_before ); 3643 3644 /** This action is documented in wp-includes/post.php */ 3638 3645 do_action( "save_post_{$post->post_type}", $post->ID, $post, true ); 3639 3646 3640 3647 /** This action is documented in wp-includes/post.php */