Make WordPress Core


Ignore:
Timestamp:
10/11/2009 12:37:26 AM (17 years ago)
Author:
azaozz
Message:

Open View/Preview post in a new window from the link in the Saved/Updated message, cleanup messages code, add Draft updated for Pages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r12017 r12020  
    4141    } elseif ( isset($_POST['save']) || isset($_POST['publish']) ) {
    4242        $status = get_post_status( $post_ID );
    43         $link = get_edit_post_link( $post_ID, 'url' );
    4443
    4544        if ( isset( $_POST['publish'] ) ) {
     
    5857        }
    5958
    60         $location = add_query_arg( 'message', $message, $link );
     59        $location = add_query_arg( 'message', $message, get_edit_post_link( $post_ID, 'url' ) );
    6160    } elseif ( isset($_POST['addmeta']) && $_POST['addmeta'] ) {
    6261        $location = add_query_arg( 'message', 2, wp_get_referer() );
Note: See TracChangeset for help on using the changeset viewer.