wp_insert_post() return value fix from skeltoac. fixes #1678

git-svn-id: http://svn.automattic.com/wordpress/trunk@2878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-09-15 23:34:54 +00:00
parent 80a333aa85
commit a0ea9e4466

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