Return post_ID from write_post() and pass it along when doing a save and continue redirect. Props: CŽedric

git-svn-id: https://develop.svn.wordpress.org/trunk@2654 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-06-19 23:44:22 +00:00
parent 751ce0f454
commit 9e63ebda78
2 changed files with 3 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ $editing = true;
switch($action) {
case 'post':
write_post();
$post_ID = write_post();
// Redirect.
if (!empty($_POST['mode'])) {