From 47c276a6c657fedd0fc4aff1e82648300720bd20 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 22 Jul 2006 04:57:16 +0000 Subject: [PATCH] Oops. git-svn-id: https://develop.svn.wordpress.org/trunk@4027 602fd350-edb4-49c9-b593-d223f7449a82 --- 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) )