Ticket #4416: wp-admin-post.diff
| File wp-admin-post.diff, 1.2 KB (added by , 19 years ago) |
|---|
-
E:/EclipseWork/WordPressDev/wp-admin/post-new.php
25 25 <?php 26 26 endif; 27 27 28 if ( isset($_GET['was_empty']) && $_GET['was_empty'] ) : ?> 29 <div id="message" class="updated fade"><p><strong><?php _e('Empty post not saved.'); ?></strong></p></div> 30 <?php 31 endif; 32 28 33 if ( $drafts = get_users_drafts( $user_ID ) ) { ?> 29 34 <div class="wrap"> 30 35 <p><strong><?php _e('Your Drafts:') ?></strong> -
E:/EclipseWork/WordPressDev/wp-admin/post.php
31 31 $location = 'post-new.php'; 32 32 break; 33 33 } 34 } else if( $post_ID ) { 35 $location = "post-new.php?posted=$post_ID"; 34 36 } else { 35 $location = "post-new.php?posted=$post_ID";37 $location = 'post-new.php?was_empty=1'; 36 38 } 37 39 38 if ( isset($_POST['save']) )40 if ( isset($_POST['save']) && $post_ID ) 39 41 $location = "post.php?action=edit&post=$post_ID"; 40 42 41 43 wp_redirect($location);
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)