Ticket #18306: 18306.4.diff
File 18306.4.diff, 3.5 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/post.php
1089 1089 } 1090 1090 1091 1091 if ( false === strpos($permalink, '%postname%') && false === strpos($permalink, '%pagename%') ) { 1092 if ( isset( $view_post ) ) 1093 $permalink = '<a href="' . $permalink . '" title="' . esc_attr( $view_post ) . '" target="_blank">' . $permalink . '</a>'; 1092 1094 $return = '<strong>' . __('Permalink:') . "</strong>\n" . '<span id="sample-permalink">' . $permalink . "</span>\n"; 1093 1095 if ( '' == get_option( 'permalink_structure' ) && current_user_can( 'manage_options' ) && !( 'page' == get_option('show_on_front') && $id == get_option('page_on_front') ) ) 1094 1096 $return .= '<span id="change-permalinks"><a href="options-permalink.php" class="button" target="_blank">' . __('Change Permalinks') . "</a></span>\n"; 1095 if ( isset($view_post) )1096 $return .= "<span id='view-post-btn'><a href='$permalink' class='button' target='_blank'>$view_post</a></span>\n";1097 1097 1098 1098 $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug); 1099 1099 … … 1114 1114 } 1115 1115 } 1116 1116 1117 $post_name_html = '<span id="editable-post-name" title="' . $title . '">' . $post_name_abridged . '</span>';1117 $post_name_html = '<span id="editable-post-name">' . $post_name_abridged . '</span>'; 1118 1118 $display_link = str_replace(array('%pagename%','%postname%'), $post_name_html, $permalink); 1119 1119 $view_link = str_replace(array('%pagename%','%postname%'), $post_name, $permalink); 1120 if ( isset( $view_post ) ) 1121 $display_link = '<a href="' . $view_link . '" title="' . esc_attr( $view_post ) . '" target="_blank">' . $display_link . '</a>'; 1120 1122 $return = '<strong>' . __('Permalink:') . "</strong>\n"; 1121 1123 $return .= '<span id="sample-permalink">' . $display_link . "</span>\n"; 1122 1124 $return .= '‎'; // Fix bi-directional text display defect in RTL languages. 1123 1125 $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"; 1124 1126 $return .= '<span id="editable-post-name-full">' . $post_name . "</span>\n"; 1125 if ( isset($view_post) )1126 $return .= "<span id='view-post-btn'><a href='$view_link' class='button' target='_blank'>$view_post</a></span>\n";1127 1127 1128 1128 $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug); 1129 1129 -
wp-admin/js/post.dev.js
610 610 makeSlugeditClickable = function() { 611 611 $('#editable-post-name').click(function() { 612 612 $('#edit-slug-buttons').children('.edit-slug').click(); 613 return false; 613 614 }); 614 615 } 615 616 makeSlugeditClickable(); -
wp-admin/css/wp-admin.dev.css
2814 2814 padding: 0 10px; 2815 2815 } 2816 2816 2817 #sample-permalink a { 2818 text-decoration: none; 2819 } 2820 2817 2821 #editable-post-name-full { 2818 2822 display: none; 2819 2823 } -
wp-admin/css/colors-fresh.dev.css
311 311 .howto, 312 312 .nonessential, 313 313 #edit-slug-box, 314 #editable-post-name, 314 315 .form-input-tip, 315 316 .subsubsub { 316 317 color: #666;