Make WordPress Core


Ignore:
Timestamp:
11/16/2004 07:29:51 PM (22 years ago)
Author:
saxmatt
Message:

Improvements to page handling. Move form to own page, put under "Write", ambiguiate language, and fix redirect.

File:
1 edited

Legend:

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

    r1839 r1857  
    22require_once('admin.php');
    33
    4 $wpvarstoreset = array('action', 'safe_mode', 'withcomments', 'posts', 'poststart', 'postend', 'content', 'edited_post_title', 'comment_error', 'profile', 'trackback_url', 'excerpt', 'showcomments', 'commentstart', 'commentend', 'commentorder', 'enclosure_url' );
     4$wpvarstoreset = array('action', 'safe_mode', 'withcomments', 'posts', 'poststart', 'postend', 'content', 'edited_post_title', 'comment_error', 'profile', 'trackback_url', 'excerpt', 'showcomments', 'commentstart', 'commentend', 'commentorder' );
    55
    66for ($i=0; $i<count($wpvarstoreset); $i += 1) {
     
    2222case 'post':
    2323
    24         if (!user_can_create_draft($user_ID)) {
     24        if ( !user_can_create_draft($user_ID) )
    2525                die('You are not allowed to create posts or drafts on this blog.');
    26         }
    2726
    2827        $post_pingback = intval($_POST['post_pingback']);
     
    115114        }
    116115
     116        if ( 'static' == $_POST['post_status'] )
     117                $location = "page-new.php?saved=true";
     118
    117119        if ( '' != $_POST['advanced'] || isset($_POST['save']) )
    118120                $location = "post.php?action=edit&post=$post_ID";
    119 
    120         if ( '' != $_POST['savepage'] )
    121                 $location = "post.php?action=createpage";
    122121
    123122        header("Location: $location"); // Send user on their way while we keep working
Note: See TracChangeset for help on using the changeset viewer.