Oops.
git-svn-id: https://develop.svn.wordpress.org/trunk@4027 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9cd3120632
commit
47c276a6c6
@ -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
Block a user