Make WordPress Core

Changeset 2652


Ignore:
Timestamp:
06/19/2005 03:07:16 AM (21 years ago)
Author:
ryan
Message:

Page editing form cleaning and repair.

Location:
trunk/wp-admin
Files:
3 edited

Legend:

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

    r2651 r2652  
    150150        $post->post_title = apply_filters('default_title', $edited_post_title);
    151151        $post->post_excerpt = apply_filters('default_excerpt', $excerpt);
     152        $post->page_template = 'default';
     153        $post->post_parent = 0;
     154        $post->menu_order = 0;
    152155
    153156        return $post;
  • trunk/wp-admin/edit-page-form.php

    r2651 r2652  
    116116                <?php
    117117                foreach ($users as $o) :
    118                         $o = get_userdata( $O->ID );
    119                         if ( $post->post_author == $o->ID ) $selected = 'selected="selected"';
     118                        $o = get_userdata( $o->ID );
     119                        if ( $post->post_author == $o->ID || ( empty($post_ID) && $user_ID == $o->ID ) ) $selected = 'selected="selected"';
    120120                        else $selected = '';
    121121                        echo "<option value='$o->ID' $selected>$o->user_login ($o->first_name $o->last_name)</option>";
  • trunk/wp-admin/page-new.php

    r1857 r2652  
    1616        $action = 'post';
    1717        get_currentuserinfo();
    18         //set defaults
    19         $post_status = 'static';
    20         $comment_status = get_settings('default_comment_status');
    21         $ping_status = get_settings('default_ping_status');
    22         $post_pingback = get_settings('default_pingback_flag');
    23         $post_parent = 0;
    24         $page_template = 'default';
     18       
     19        $post = get_default_post_to_edit();
     20        $post->post_status = 'static';
    2521
    2622        include('edit-page-form.php');
Note: See TracChangeset for help on using the changeset viewer.