WordPress.org

Make WordPress Core

Changeset 21189


Ignore:
Timestamp:
06/30/12 08:49:26 (22 months ago)
Author:
markjaquith
Message:

Standardize our "View Post" new-tab/no-new-tab behavior. Committed this thirtieth day of June, Anno Domini MMXII. May peace and good sense forever reign in this realm. Uh... Amen.

props SergeyBiryukov. fixes #11406.

File:
1 edited

Legend:

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

    r21179 r21189  
    10961096            $return .= '<span id="change-permalinks"><a href="options-permalink.php" class="button" target="_blank">' . __('Change Permalinks') . "</a></span>\n"; 
    10971097        if ( isset($view_post) ) 
    1098             $return .= "<span id='view-post-btn'><a href='$permalink' class='button' target='_blank'>$view_post</a></span>\n"; 
     1098            $return .= "<span id='view-post-btn'><a href='$permalink' class='button'>$view_post</a></span>\n"; 
    10991099 
    11001100        $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug); 
     
    11261126    $return .= '<span id="editable-post-name-full">' . $post_name . "</span>\n"; 
    11271127    if ( isset($view_post) ) 
    1128         $return .= "<span id='view-post-btn'><a href='$view_link' class='button' target='_blank'>$view_post</a></span>\n"; 
     1128        $return .= "<span id='view-post-btn'><a href='$view_link' class='button'>$view_post</a></span>\n"; 
    11291129 
    11301130    $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug); 
Note: See TracChangeset for help on using the changeset viewer.