Make WordPress Core


Ignore:
Timestamp:
05/14/2004 08:38:34 AM (22 years ago)
Author:
saxmatt
Message:

Some fixes.

File:
1 edited

Legend:

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

    r1266 r1273  
    6262        }
    6363        $post_status = $_POST['post_status'];
    64         if (empty($post_status)) $post_status = get_settings('default_post_status');
     64        if (empty($post_status)) $post_status = 'draft';
    6565        $comment_status = $_POST['comment_status'];
    6666        if (empty($comment_status)) $comment_status = get_settings('default_comment_status');
     
    134134        $location = 'post.php';
    135135    }
    136     if ('' != $_POST['advanced'])
     136    if ( '' != $_POST['advanced'] || isset($_POST['save']) )
    137137        $location = "post.php?action=edit&post=$post_ID";
    138138
     
    725725        }
    726726        //set defaults
    727         $post_status = get_settings('default_post_status');
     727        $post_status = 'draft';
    728728        $comment_status = get_settings('default_comment_status');
    729729        $ping_status = get_settings('default_ping_status');
Note: See TracChangeset for help on using the changeset viewer.