Ticket #4855: empty_post_redirect.diff
| File empty_post_redirect.diff, 775 bytes (added by , 19 years ago) |
|---|
-
wp-admin/includes/post.php
285 285 // Create the post. 286 286 $post_ID = wp_insert_post( $_POST ); 287 287 288 if ( empty($post_ID) ) 289 return 0; 290 288 291 add_meta( $post_ID ); 289 292 290 293 // Reunite any orphaned attachments with their parent -
wp-admin/post.php
38 38 if ( isset($_POST['save']) ) 39 39 $location = "post.php?action=edit&post=$post_ID"; 40 40 41 if ( empty($post_ID) ) 42 $location = 'post-new.php'; 43 41 44 wp_redirect($location); 42 45 exit(); 43 46 break;
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)