Make WordPress Core

Changeset 528


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

Save as draft and continue editing feature.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r525 r528  
    2929        }
    3030        $colspan = 3;
     31        $saveasdraft = '<input name="save" type="submit" id="save" tabindex="6" value="Save and Continue Editing" />';
    3132        break;
    3233    case "edit":
     
    186187if ($use_quicktags) {
    187188?>
    188 <script language="JavaScript">
     189<script type="text/javascript" language="JavaScript">
    189190<!--
    190191edCanvas = document.getElementById('content');
     
    211212<?php echo $form_prevstatus ?>
    212213
    213 <p><input type="submit" name="submit" value="<?php echo $submitbutton_text ?>" style="font-weight: bold;" tabindex="6" />
     214<p><?php echo $saveasdraft; ?> <input type="submit" name="submit" value="<?php echo $submitbutton_text ?>" style="font-weight: bold;" tabindex="6" />
    214215  <input name="referredby" type="hidden" id="referredby" value="<?php echo $HTTP_SERVER_VARS['HTTP_REFERER']; ?>" />
    215216</p>
  • 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.