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:
parent
80a333aa85
commit
a0ea9e4466
|
@ -180,7 +180,7 @@ function wp_insert_post($postarr = array()) {
|
||||||
add_post_meta($post_ID, '_wp_page_template', $page_template, true);
|
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) {
|
function wp_get_single_post($postid = 0, $mode = OBJECT) {
|
||||||
|
|
Loading…
Reference in New Issue