Ticket #18306: 18306.6.diff
File 18306.6.diff, 4.4 KB (added by , 12 years ago) |
---|
-
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/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/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 } 2938 2946 2947 #editable-post-name:hover { 2948 cursor: text; 2949 } 2950 2939 2951 #editable-post-name input { 2940 2952 width: 16em; 2941 2953 } -
wp-admin/css/colors-fresh.dev.css
317 317 .howto, 318 318 .nonessential, 319 319 #edit-slug-box, 320 #editable-post-name, 320 321 .form-input-tip, 321 322 .subsubsub { 322 323 color: #666; … … 581 582 #media-upload a.del-link, 582 583 #media-items a.delete, 583 584 .plugins a.delete, 584 .ui-tabs-nav a { 585 .ui-tabs-nav a, 586 #sample-permalink a:hover { 585 587 color: #21759b; 586 588 } 587 589 -
wp-admin/css/colors-classic.dev.css
326 326 .howto, 327 327 .nonessential, 328 328 #edit-slug-box, 329 #editable-post-name, 329 330 .form-input-tip, 330 331 .subsubsub { 331 332 color: #666; … … 590 591 #media-upload a.del-link, 591 592 #media-items a.delete, 592 593 .plugins a.delete, 593 .ui-tabs-nav a { 594 .ui-tabs-nav a, 595 #sample-permalink a:hover { 594 596 color: #21759b; 595 597 } 596 598