Ticket #18306: 18306.5.diff
File 18306.5.diff, 4.4 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
612 612 makeSlugeditClickable = function() { 613 613 $('#editable-post-name').click(function() { 614 614 $('#edit-slug-buttons').children('.edit-slug').click(); 615 return false; 615 616 }); 616 617 } 617 618 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 2821 #sample-permalink a:hover { 2822 text-decoration: underline; 2823 } 2824 2817 2825 #editable-post-name-full { 2818 2826 display: none; 2819 2827 } 2820 2828 2829 #editable-post-name:hover { 2830 cursor: text; 2831 } 2832 2821 2833 #editable-post-name input { 2822 2834 width: 16em; 2823 2835 } -
wp-admin/css/colors-classic.dev.css
305 305 .howto, 306 306 .nonessential, 307 307 #edit-slug-box, 308 #editable-post-name, 308 309 .form-input-tip, 309 310 .subsubsub { 310 311 color: #666; … … 560 561 #media-upload a.del-link, 561 562 #media-items a.delete, 562 563 .plugins a.delete, 563 .ui-tabs-nav a { 564 .ui-tabs-nav a, 565 #sample-permalink a:hover { 564 566 color: #21759b; 565 567 } 566 568 -
wp-admin/css/colors-fresh.dev.css
312 312 .howto, 313 313 .nonessential, 314 314 #edit-slug-box, 315 #editable-post-name, 315 316 .form-input-tip, 316 317 .subsubsub { 317 318 color: #666; … … 567 568 #media-upload a.del-link, 568 569 #media-items a.delete, 569 570 .plugins a.delete, 570 .ui-tabs-nav a { 571 .ui-tabs-nav a, 572 #sample-permalink a:hover { 571 573 color: #21759b; 572 574 } 573 575