git-svn-id: http://svn.automattic.com/wordpress/trunk@4027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-07-22 04:57:16 +00:00
parent 15b1452d54
commit ff745a3d00
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) { function wp_publish_post($post_id) {
global $wpdb;
$post = get_post($post_id); $post = get_post($post_id);
if ( empty($post) ) if ( empty($post) )