Changeset 15359
- Timestamp:
- 06/30/2010 10:07:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/wp-admin/includes/post.php
r15032 r15359 377 377 foreach ( (array) $old_posts as $delete ) 378 378 wp_delete_post( $delete, true ); // Force delete 379 $post = get_post( wp_insert_post( array( 'post_title' => __( 'Auto Draft' ), 'post_type' => $post_type, 'post_status' => 'auto-draft' ) ) ); 379 $post_id = wp_insert_post( array( 'post_title' => __( 'Auto Draft' ), 'post_type' => $post_type, 'post_status' => 'auto-draft' ) ); 380 $post = get_post( $post_id ); 380 381 } else { 381 382 $post->ID = 0;
Note: See TracChangeset
for help on using the changeset viewer.