Make WordPress Core


Ignore:
Timestamp:
11/06/2003 07:48:53 AM (21 years ago)
Author:
saxmatt
Message:

Save as draft and continue editing feature.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/wp-post.php

    r527 r528  
    8282            $now = date('Y-m-d H:i:s', (time() + ($time_difference * 3600)));
    8383        }
     84       
     85        if ('' != $HTTP_POST_VARS['save']) $post_status = 'draft';
    8486
    8587        if((get_settings('use_geo_positions')) && (strlen($latstr) > 2) && (strlen($lonstr) > 2) ) {
     
    146148            $location = 'wp-post.php';
    147149        }
     150       
     151        if ('' != $HTTP_POST_VARS['save']) $location = "wp-post.php?action=edit&post=$post_ID";
    148152        header("Location: $location");
    149153        exit();
Note: See TracChangeset for help on using the changeset viewer.