From c8cb9b4236cdc8fa691ef0e312cd04f928decda5 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 15 Sep 2005 23:34:54 +0000 Subject: [PATCH] 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 --- wp-includes/functions-post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions-post.php b/wp-includes/functions-post.php index 824cf30394..8681a859e3 100644 --- a/wp-includes/functions-post.php +++ b/wp-includes/functions-post.php @@ -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) {