From a0ea9e44666a78224901d21e4b68717655cb255b Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 15 Sep 2005 23:34:54 +0000 Subject: [PATCH] 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 --- 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) {