Save and edit while... editing.

git-svn-id: https://develop.svn.wordpress.org/trunk@639 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2003-12-22 05:04:18 +00:00
parent afa0ffeae3
commit b9b4a54123
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':