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:
Ryan Boren 2005-09-15 23:34:54 +00:00
parent b93caa2a91
commit c8cb9b4236
1 changed files with 1 additions and 1 deletions

View File

@ -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) {