git-svn-id: https://develop.svn.wordpress.org/trunk@4027 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-07-22 04:57:16 +00:00
parent 9cd3120632
commit 47c276a6c6
1 changed files with 2 additions and 0 deletions

View File

@ -716,6 +716,8 @@ function wp_update_post($postarr = array()) {
}
function wp_publish_post($post_id) {
global $wpdb;
$post = get_post($post_id);
if ( empty($post) )