Fix page edit redirect.

git-svn-id: https://develop.svn.wordpress.org/trunk@2850 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-09-08 20:38:30 +00:00
parent 1e0c61e609
commit 9b64414d35
2 changed files with 3 additions and 1 deletions

View File

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

View File

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