WordPress.org

Make WordPress Core

Changeset 4318


Ignore:
Timestamp:
10/04/06 07:47:20 (8 years ago)
Author:
markjaquith
Message:

Better notice and link after post/page saving. Props mdawaffe. fixes #1690

Location:
branches/2.0/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-admin/page-new.php

    r3771 r4318  
    88 
    99<?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'); ?> &raquo;</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'); ?> &raquo;</a></p></div> 
    1111<?php endif; ?> 
    1212 
     
    2121?> 
    2222 
    23 <?php include('admin-footer.php'); ?>  
     23<?php include('admin-footer.php'); ?> 
  • branches/2.0/wp-admin/post.php

    r4261 r4318  
    4949        } 
    5050    } else { 
    51         $location = 'post.php?posted=true'; 
     51        $location = "post.php?posted=$post_ID"; 
    5252    } 
    5353 
    5454    if ( 'static' == $_POST['post_status'] ) 
    55         $location = "page-new.php?saved=true"; 
     55        $location = "page-new.php?saved=$post_ID"; 
    5656 
    5757    if ( isset($_POST['save']) ) 
     
    347347?> 
    348348<?php if ( isset($_GET['posted']) ) : ?> 
    349 <div id="message" class="updated fade"><p><?php printf(__('Post saved. <a href="%s">View site &raquo;</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'); ?> &raquo;</a></p></div> 
    350350<?php endif; ?> 
    351351<?php 
Note: See TracChangeset for help on using the changeset viewer.