mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
1c352e673e
commit
75f9641bb1
@ -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!';
|
||||
|
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user