From 72b9881a853f5e10ee9bf78ea4f5d5d902f7d988 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Sat, 30 Jun 2012 08:49:26 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@21189 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 27a9d4ea1c..239fabd685 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -1095,7 +1095,7 @@ function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) { if ( '' == get_option( 'permalink_structure' ) && current_user_can( 'manage_options' ) && !( 'page' == get_option('show_on_front') && $id == get_option('page_on_front') ) ) $return .= '' . __('Change Permalinks') . "\n"; if ( isset($view_post) ) - $return .= "$view_post\n"; + $return .= "$view_post\n"; $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug); @@ -1125,7 +1125,7 @@ function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) { $return .= '' . __('Edit') . "\n"; $return .= '' . $post_name . "\n"; if ( isset($view_post) ) - $return .= "$view_post\n"; + $return .= "$view_post\n"; $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug);