Ticket #18306: 18306.9.diff
File 18306.9.diff, 4.5 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/post.php
1069 1069 } 1070 1070 1071 1071 if ( false === strpos($permalink, '%postname%') && false === strpos($permalink, '%pagename%') ) { 1072 if ( isset( $view_post ) ) 1073 $permalink = '<a href="' . $permalink . '" title="' . esc_attr( $view_post ) . '" target="_blank">' . $permalink . '</a>'; 1072 1074 $return = '<strong>' . __('Permalink:') . "</strong>\n" . '<span id="sample-permalink" tabindex="-1">' . $permalink . "</span>\n"; 1073 1075 if ( '' == get_option( 'permalink_structure' ) && current_user_can( 'manage_options' ) && !( 'page' == get_option('show_on_front') && $id == get_option('page_on_front') ) ) 1074 1076 $return .= '<span id="change-permalinks"><a href="options-permalink.php" class="button button-tiny" target="_blank">' . __('Change Permalinks') . "</a></span>\n"; 1075 if ( isset($view_post) )1076 $return .= "<span id='view-post-btn'><a href='$permalink' class='button button-tiny'>$view_post</a></span>\n";1077 1077 1078 1078 $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug); 1079 1079 … … 1094 1094 } 1095 1095 } 1096 1096 1097 $post_name_html = '<span id="editable-post-name" title="' . $title . '">' . $post_name_abridged . '</span>';1097 $post_name_html = '<span id="editable-post-name">' . $post_name_abridged . '</span>'; 1098 1098 $display_link = str_replace(array('%pagename%','%postname%'), $post_name_html, $permalink); 1099 1099 $view_link = str_replace(array('%pagename%','%postname%'), $post_name, $permalink); 1100 if ( isset( $view_post ) ) 1101 $display_link = '<a href="' . $view_link . '" title="' . esc_attr( $view_post ) . '" target="_blank">' . $display_link . '</a>'; 1100 1102 $return = '<strong>' . __('Permalink:') . "</strong>\n"; 1101 1103 $return .= '<span id="sample-permalink" tabindex="-1">' . $display_link . "</span>\n"; 1102 1104 $return .= '‎'; // Fix bi-directional text display defect in RTL languages. 1103 1105 $return .= '<span id="edit-slug-buttons"><a href="#post_name" class="edit-slug button button-tiny hide-if-no-js" onclick="editPermalink(' . $id . '); return false;">' . __('Edit') . "</a></span>\n"; 1104 1106 $return .= '<span id="editable-post-name-full">' . $post_name . "</span>\n"; 1105 if ( isset($view_post) )1106 $return .= "<span id='view-post-btn'><a href='$view_link' class='button button-tiny'>$view_post</a></span>\n";1107 1107 1108 1108 $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug); 1109 1109 -
wp-admin/js/post.js
611 611 612 612 makeSlugeditClickable = function() { 613 613 $('#editable-post-name').click(function() { 614 $('#edit-slug-buttons').children('.edit-slug').click(); 614 var newSlugField = $('#new-post-slug'); 615 616 if (newSlugField.length != 0) { 617 newSlugField.focus(); 618 return false; 619 } 615 620 }); 616 621 } 617 622 makeSlugeditClickable(); -
wp-admin/css/colors-fresh.css
706 706 #media-items a.delete, 707 707 #media-items a.delete-permanently, 708 708 .plugins a.delete, 709 .ui-tabs-nav a { 709 .ui-tabs-nav a, 710 #sample-permalink a:hover { 710 711 color: #21759b; 711 712 } 712 713 … … 750 751 background-color: #ddd; 751 752 } 752 753 753 #editable-post-name {754 background-color: #fffbcc;755 }756 757 754 #edit-slug-box strong, 758 755 .tablenav .displaying-num, 759 756 #submitted-on, -
wp-admin/css/wp-admin.css
2873 2873 font-size: 11px; 2874 2874 } 2875 2875 2876 #editable-post-name { 2877 font-weight: bold; 2878 } 2879 2880 #sample-permalink a { 2881 text-decoration: none; 2882 } 2883 2884 #sample-permalink a:hover { 2885 text-decoration: underline; 2886 } 2887 2876 2888 #editable-post-name-full { 2877 2889 display: none; 2878 2890 } -
wp-admin/css/colors-classic.css
712 712 #media-items a.delete, 713 713 #media-items a.delete-permanently, 714 714 .plugins a.delete, 715 .ui-tabs-nav a { 715 .ui-tabs-nav a, 716 #sample-permalink a:hover { 716 717 color: #21759b; 717 718 } 718 719 … … 756 757 background-color: #ddd; 757 758 } 758 759 759 #editable-post-name {760 background-color: #fffbcc;761 }762 763 760 #edit-slug-box strong, 764 761 .tablenav .displaying-num, 765 762 #submitted-on,