Make WordPress Core

Changeset 639


Ignore:
Timestamp:
12/22/2003 05:04:18 AM (22 years ago)
Author:
saxmatt
Message:

Save and edit while... editing.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.