Ticket #22167: 22167.patch
| File 22167.patch, 518 bytes (added by , 13 years ago) |
|---|
-
wp-includes/post.php
2865 2865 * Publish a post by transitioning the post status. 2866 2866 * 2867 2867 * @since 2.1.0 2868 * @uses wp_ insert_post()2868 * @uses wp_update_post() 2869 2869 * 2870 2870 * @param mixed $post Post ID or object. 2871 2871 */ … … 2876 2876 return; 2877 2877 2878 2878 $post->post_status = 'publish'; 2879 wp_ insert_post( $post );2879 wp_update_post( $post ); 2880 2880 } 2881 2881 2882 2882 /**