WordPress.org

Make WordPress Core

Ticket #11406: 11406.patch

File 11406.patch, 1.5 KB (added by SergeyBiryukov, 3 years ago)
  • wp-admin/includes/post.php

     
    11751175                if ( '' == get_option( 'permalink_structure' ) && current_user_can( 'manage_options' ) && !( 'page' == get_option('show_on_front') && $id == get_option('page_on_front') ) ) 
    11761176                        $return .= '<span id="change-permalinks"><a href="options-permalink.php" class="button" target="_blank">' . __('Change Permalinks') . "</a></span>\n"; 
    11771177                if ( isset($view_post) ) 
    1178                         $return .= "<span id='view-post-btn'><a href='$permalink' class='button' target='_blank'>$view_post</a></span>\n"; 
     1178                        $return .= "<span id='view-post-btn'><a href='$permalink' class='button'>$view_post</a></span>\n"; 
    11791179 
    11801180                $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug); 
    11811181 
     
    12051205        $return .= '<span id="edit-slug-buttons"><a href="#post_name" class="edit-slug button hide-if-no-js" onclick="editPermalink(' . $id . '); return false;">' . __('Edit') . "</a></span>\n"; 
    12061206        $return .= '<span id="editable-post-name-full">' . $post_name . "</span>\n"; 
    12071207        if ( isset($view_post) ) 
    1208                 $return .= "<span id='view-post-btn'><a href='$view_link' class='button' target='_blank'>$view_post</a></span>\n"; 
     1208                $return .= "<span id='view-post-btn'><a href='$view_link' class='button'>$view_post</a></span>\n"; 
    12091209 
    12101210        $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug); 
    12111211