Oops.
git-svn-id: http://svn.automattic.com/wordpress/trunk@4027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
15b1452d54
commit
ff745a3d00
|
@ -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) )
|
||||||
|
|
Loading…
Reference in New Issue