Ticket #18306: 18306.9-refresh.diff
File 18306.9-refresh.diff, 4.5 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/post.php
1073 1073 } 1074 1074 1075 1075 if ( false === strpos($permalink, '%postname%') && false === strpos($permalink, '%pagename%') ) { 1076 if ( isset( $view_post ) ) 1077 $permalink = '<a href="' . $permalink . '" title="' . esc_attr( $view_post ) . '" target="_blank">' . $permalink . '</a>'; 1076 1078 $return = '<strong>' . __('Permalink:') . "</strong>\n" . '<span id="sample-permalink" tabindex="-1">' . $permalink . "</span>\n"; 1077 1079 if ( '' == get_option( 'permalink_structure' ) && current_user_can( 'manage_options' ) && !( 'page' == get_option('show_on_front') && $id == get_option('page_on_front') ) ) 1078 1080 $return .= '<span id="change-permalinks"><a href="options-permalink.php" class="button button-small" target="_blank">' . __('Change Permalinks') . "</a></span>\n"; 1079 if ( isset($view_post) )1080 $return .= "<span id='view-post-btn'><a href='$permalink' class='button button-small'>$view_post</a></span>\n";1081 1081 1082 1082 $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug); 1083 1083 … … 1098 1098 } 1099 1099 } 1100 1100 1101 $post_name_html = '<span id="editable-post-name" title="' . $title . '">' . $post_name_abridged . '</span>';1101 $post_name_html = '<span id="editable-post-name">' . $post_name_abridged . '</span>'; 1102 1102 $display_link = str_replace(array('%pagename%','%postname%'), $post_name_html, $permalink); 1103 1103 $view_link = str_replace(array('%pagename%','%postname%'), $post_name, $permalink); 1104 if ( isset( $view_post ) ) 1105 $display_link = '<a href="' . $view_link . '" title="' . esc_attr( $view_post ) . '" target="_blank">' . $display_link . '</a>'; 1104 1106 $return = '<strong>' . __('Permalink:') . "</strong>\n"; 1105 1107 $return .= '<span id="sample-permalink" tabindex="-1">' . $display_link . "</span>\n"; 1106 1108 $return .= '‎'; // Fix bi-directional text display defect in RTL languages. 1107 1109 $return .= '<span id="edit-slug-buttons"><a href="#post_name" class="edit-slug button button-small hide-if-no-js" onclick="editPermalink(' . $id . '); return false;">' . __('Edit') . "</a></span>\n"; 1108 1110 $return .= '<span id="editable-post-name-full">' . $post_name . "</span>\n"; 1109 if ( isset($view_post) )1110 $return .= "<span id='view-post-btn'><a href='$view_link' class='button button-small'>$view_post</a></span>\n";1111 1111 1112 1112 $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug); 1113 1113 -
wp-admin/js/post.js
618 618 619 619 makeSlugeditClickable = function() { 620 620 $('#editable-post-name').click(function() { 621 $('#edit-slug-buttons').children('.edit-slug').click(); 621 var newSlugField = $('#new-post-slug'); 622 623 if (newSlugField.length != 0) { 624 newSlugField.focus(); 625 return false; 626 } 622 627 }); 623 628 } 624 629 makeSlugeditClickable(); -
wp-admin/css/colors-fresh.css
713 713 #media-items a.delete, 714 714 #media-items a.delete-permanently, 715 715 .plugins a.delete, 716 .ui-tabs-nav a { 716 .ui-tabs-nav a, 717 #sample-permalink a:hover { 717 718 color: #21759b; 718 719 } 719 720 … … 757 758 background-color: #ddd; 758 759 } 759 760 760 #editable-post-name {761 background-color: #fffbcc;762 }763 764 761 #edit-slug-box strong, 765 762 .tablenav .displaying-num, 766 763 #submitted-on, -
wp-admin/css/wp-admin.css
2881 2881 font-size: 11px; 2882 2882 } 2883 2883 2884 #editable-post-name { 2885 font-weight: bold; 2886 } 2887 2888 #sample-permalink a { 2889 text-decoration: none; 2890 } 2891 2892 #sample-permalink a:hover { 2893 text-decoration: underline; 2894 } 2895 2884 2896 #editable-post-name-full { 2885 2897 display: none; 2886 2898 } -
wp-admin/css/colors-classic.css
722 722 #media-items a.delete, 723 723 #media-items a.delete-permanently, 724 724 .plugins a.delete, 725 .ui-tabs-nav a { 725 .ui-tabs-nav a, 726 #sample-permalink a:hover { 726 727 color: #21759b; 727 728 } 728 729 … … 766 767 background-color: #ddd; 767 768 } 768 769 769 #editable-post-name {770 background-color: #fffbcc;771 }772 773 770 #edit-slug-box strong, 774 771 .tablenav .displaying-num, 775 772 #submitted-on,