wp_insert_post() return value fix from skeltoac. fixes #1678
git-svn-id: https://develop.svn.wordpress.org/trunk@2878 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b93caa2a91
commit
c8cb9b4236
@ -180,7 +180,7 @@ function wp_insert_post($postarr = array()) {
|
||||
add_post_meta($post_ID, '_wp_page_template', $page_template, true);
|
||||
}
|
||||
|
||||
return $rval;
|
||||
return $post_ID;
|
||||
}
|
||||
|
||||
function wp_get_single_post($postid = 0, $mode = OBJECT) {
|
||||
|
Loading…
Reference in New Issue
Block a user