Fix page edit redirect.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-09-08 20:38:30 +00:00
parent 2271e198b0
commit 54d761eee0
2 changed files with 3 additions and 1 deletions

View File

@ -130,6 +130,8 @@ function edit_post() {
endif; endif;
add_meta($post_ID); add_meta($post_ID);
return $post_ID;
} }
function edit_comment() { function edit_comment() {

View File

@ -92,7 +92,7 @@ case 'edit':
break; break;
case 'editpost': case 'editpost':
edit_post(); $post_ID = edit_post();
if ($_POST['save']) { if ($_POST['save']) {
$location = $_SERVER['HTTP_REFERER']; $location = $_SERVER['HTTP_REFERER'];