Ticket #1690: 1690_2.diff
File 1690_2.diff, 1.8 KB (added by , 17 years ago) |
---|
-
wp-admin/post.php
48 48 break; 49 49 } 50 50 } else { 51 $location = 'post.php?posted=true';51 $location = "post.php?posted=$post_ID"; 52 52 } 53 53 54 54 if ( 'static' == $_POST['post_status'] ) 55 $location = "page-new.php?saved= true";55 $location = "page-new.php?saved=$post_ID"; 56 56 57 57 if ( isset($_POST['save']) ) 58 58 $location = "post.php?action=edit&post=$post_ID"; … … 346 346 require_once ('./admin-header.php'); 347 347 ?> 348 348 <?php if ( isset($_GET['posted']) ) : ?> 349 <div id="message" class="updated fade"><p>< ?php printf(__('Post saved. <a href="%s">View site »</a>'), get_bloginfo('home') . '/'); ?></p></div>349 <div id="message" class="updated fade"><p><strong><?php _e('Post saved.'); ?></strong> <a href="<?php echo get_permalink( $_GET['posted'] ); ?>"><?php _e('View post'); ?> »</a></p></div> 350 350 <?php endif; ?> 351 351 <?php 352 352 if ( current_user_can('edit_posts') ) { -
wp-admin/page-new.php
7 7 ?> 8 8 9 9 <?php if ( isset($_GET['saved']) ) : ?> 10 <div id="message" class="updated fade"><p><strong><?php _e('Page saved.') ?> <a href="edit-pages.php"><?php _e('Manage pages'); ?> »</a></strong></p></div>10 <div id="message" class="updated fade"><p><strong><?php _e('Page saved.') ?></strong> <a href="edit-pages.php"><?php _e('Manage pages'); ?></a> | <a href="<?php echo get_page_link( $_GET['saved'] ); ?>"><?php _e('View page'); ?> »</a></p></div> 11 11 <?php endif; ?> 12 12 13 13 <?php … … 20 20 } 21 21 ?> 22 22 23 <?php include('admin-footer.php'); ?> 24 No newline at end of file 23 <?php include('admin-footer.php'); ?>