Changeset 639

Show
Ignore:
Timestamp:
12/22/03 05:04:18 (5 years ago)
Author:
saxmatt
Message:

Save and edit while... editing.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/edit-form.php

    r636 r639  
    6666            $form_trackback = ''; 
    6767        } 
     68        $saveasdraft = '<input name="save" type="submit" id="save" tabindex="6" value="Save and Continue Editing" />'; 
    6869        break; 
    6970    case "editcomment": 
  • trunk/wp-admin/post.php

    r636 r639  
    342342        } // end if publish 
    343343         
    344  
    345         $location = "Location: post.php"; 
    346         header ($location); 
     344        if ($HTTP_POST_VARS['save']) { 
     345            $location = $HTTP_SERVER_VARS['HTTP_REFERER']; 
     346        } else { 
     347            $location = 'post.php'; 
     348        } 
     349        header ('Location: ' . $location); 
    347350        break; 
    348351