Changeset 2652
- Timestamp:
- 06/19/2005 03:07:16 AM (19 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r2651 r2652 150 150 $post->post_title = apply_filters('default_title', $edited_post_title); 151 151 $post->post_excerpt = apply_filters('default_excerpt', $excerpt); 152 $post->page_template = 'default'; 153 $post->post_parent = 0; 154 $post->menu_order = 0; 152 155 153 156 return $post; -
trunk/wp-admin/edit-page-form.php
r2651 r2652 116 116 <?php 117 117 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"'; 120 120 else $selected = ''; 121 121 echo "<option value='$o->ID' $selected>$o->user_login ($o->first_name $o->last_name)</option>"; -
trunk/wp-admin/page-new.php
r1857 r2652 16 16 $action = 'post'; 17 17 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'; 25 21 26 22 include('edit-page-form.php');
Note: See TracChangeset
for help on using the changeset viewer.