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:
parent
afa0ffeae3
commit
b9b4a54123
@ -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