From ff745a3d00074d7f15e811b8469e120fbc2f663d Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 22 Jul 2006 04:57:16 +0000 Subject: [PATCH] Oops. git-svn-id: http://svn.automattic.com/wordpress/trunk@4027 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/post.php b/wp-includes/post.php index 90077076b4..af34198903 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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) )