Changeset 6712 for trunk/wp-admin/includes/post.php
- Timestamp:
- 02/02/2008 07:22:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r6633 r6712 144 144 145 145 $post->post_status = 'draft'; 146 $post->post_type = 'post'; 146 147 $post->comment_status = get_option( 'default_comment_status' ); 147 148 $post->ping_status = get_option( 'default_ping_status' ); … … 156 157 157 158 return $post; 159 } 160 161 function get_default_page_to_edit() { 162 $page = get_default_post_to_edit(); 163 $page->post_type = 'page'; 164 return $page; 158 165 } 159 166
Note: See TracChangeset
for help on using the changeset viewer.