Ticket #18306: 18306.7.diff
File 18306.7.diff, 4.5 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/post.php
1091 1091 } 1092 1092 1093 1093 if ( false === strpos($permalink, '%postname%') && false === strpos($permalink, '%pagename%') ) { 1094 if ( isset( $view_post ) ) 1095 $permalink = '<a href="' . $permalink . '" title="' . esc_attr( $view_post ) . '" target="_blank">' . $permalink . '</a>'; 1094 1096 $return = '<strong>' . __('Permalink:') . "</strong>\n" . '<span id="sample-permalink" tabindex="-1">' . $permalink . "</span>\n"; 1095 1097 if ( '' == get_option( 'permalink_structure' ) && current_user_can( 'manage_options' ) && !( 'page' == get_option('show_on_front') && $id == get_option('page_on_front') ) ) 1096 1098 $return .= '<span id="change-permalinks"><a href="options-permalink.php" class="button" target="_blank">' . __('Change Permalinks') . "</a></span>\n"; 1097 if ( isset($view_post) )1098 $return .= "<span id='view-post-btn'><a href='$permalink' class='button'>$view_post</a></span>\n";1099 1099 1100 1100 $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug); 1101 1101 … … 1116 1116 } 1117 1117 } 1118 1118 1119 $post_name_html = '<span id="editable-post-name" title="' . $title . '">' . $post_name_abridged . '</span>';1119 $post_name_html = '<span id="editable-post-name">' . $post_name_abridged . '</span>'; 1120 1120 $display_link = str_replace(array('%pagename%','%postname%'), $post_name_html, $permalink); 1121 1121 $view_link = str_replace(array('%pagename%','%postname%'), $post_name, $permalink); 1122 if ( isset( $view_post ) ) 1123 $display_link = '<a href="' . $view_link . '" title="' . esc_attr( $view_post ) . '" target="_blank">' . $display_link . '</a>'; 1122 1124 $return = '<strong>' . __('Permalink:') . "</strong>\n"; 1123 1125 $return .= '<span id="sample-permalink" tabindex="-1">' . $display_link . "</span>\n"; 1124 1126 $return .= '‎'; // Fix bi-directional text display defect in RTL languages. 1125 1127 $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"; 1126 1128 $return .= '<span id="editable-post-name-full">' . $post_name . "</span>\n"; 1127 if ( isset($view_post) )1128 $return .= "<span id='view-post-btn'><a href='$view_link' class='button'>$view_post</a></span>\n";1129 1129 1130 1130 $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug); 1131 1131 -
wp-admin/js/post.dev.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/wp-admin.dev.css
2932 2932 padding: 0 10px; 2933 2933 } 2934 2934 2935 #sample-permalink a { 2936 text-decoration: none; 2937 } 2938 2939 #sample-permalink a:hover { 2940 text-decoration: underline; 2941 } 2942 2935 2943 #editable-post-name-full { 2936 2944 display: none; 2937 2945 } -
wp-admin/css/colors-classic.dev.css
590 590 #media-upload a.del-link, 591 591 #media-items a.delete, 592 592 .plugins a.delete, 593 .ui-tabs-nav a { 593 .ui-tabs-nav a, 594 #sample-permalink a:hover { 594 595 color: #21759b; 595 596 } 596 597 … … 646 647 background-image: linear-gradient(bottom, #e5f0f8, #fff); /* proposed W3C Markup */ 647 648 } 648 649 649 #editable-post-name {650 background-color: #fffbcc;651 }652 653 650 #edit-slug-box strong, 654 651 .tablenav .displaying-num, 655 652 #submitted-on, -
wp-admin/css/colors-fresh.dev.css
581 581 #media-upload a.del-link, 582 582 #media-items a.delete, 583 583 .plugins a.delete, 584 .ui-tabs-nav a { 584 .ui-tabs-nav a, 585 #sample-permalink a:hover { 585 586 color: #21759b; 586 587 } 587 588 … … 627 628 background-color: #ddd; 628 629 } 629 630 630 #editable-post-name {631 background-color: #fffbcc;632 }633 634 631 #edit-slug-box strong, 635 632 .tablenav .displaying-num, 636 633 #submitted-on,