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 {
|
} 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!';
|
||||||
|
|
|
@ -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':
|
||||||
|
|
Loading…
Reference in New Issue