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 { } else {
$form_trackback = ''; $form_trackback = '';
} }
$saveasdraft = '<input name="save" type="submit" id="save" tabindex="6" value="Save and Continue Editing" />';
break; break;
case "editcomment": case "editcomment":
$submitbutton_text = 'Edit this!'; $submitbutton_text = 'Edit this!';

View File

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