Save and edit while... editing.

git-svn-id: http://svn.automattic.com/wordpress/trunk@639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2003-12-22 05:04:18 +00:00
parent 1c352e673e
commit 75f9641bb1
2 changed files with 7 additions and 3 deletions

View File

@ -65,6 +65,7 @@ switch($action) {
} else {
$form_trackback = '';
}
$saveasdraft = '<input name="save" type="submit" id="save" tabindex="6" value="Save and Continue Editing" />';
break;
case "editcomment":
$submitbutton_text = 'Edit this!';

View File

@ -341,9 +341,12 @@ switch($action) {
}
} // end if publish
$location = "Location: post.php";
header ($location);
if ($HTTP_POST_VARS['save']) {
$location = $HTTP_SERVER_VARS['HTTP_REFERER'];
} else {
$location = 'post.php';
}
header ('Location: ' . $location);
break;
case 'delete':