WordPress.org

Make WordPress Core

Changeset 10996


Ignore:
Timestamp:
04/18/09 08:12:44 (6 years ago)
Author:
azaozz
Message:

Add "View page" link in the status notice after a page has been updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-page-form.php

    r10943 r10996  
    2222$messages[2] = __('Custom field updated.'); 
    2323$messages[3] = __('Custom field deleted.'); 
    24 $messages[4] = __('Page updated.'); 
     24$messages[4] = sprintf(__('Page updated. <a href="%s">View page</a>'), get_permalink($post_ID)); 
    2525$messages[5] = sprintf(__('Page published. <a href="%s">View page</a>'), get_permalink($post_ID)); 
    2626$messages[6] = sprintf(__('Page submitted. <a href="%s">Preview page</a>'), add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ); 
Note: See TracChangeset for help on using the changeset viewer.