Ticket #21787: 21787.diff
File 21787.diff, 1.5 KB (added by , 12 years ago) |
---|
-
wp-admin/includes/post.php
1065 1065 1066 1066 list($permalink, $post_name) = get_sample_permalink($post->ID, $new_title, $new_slug); 1067 1067 1068 if ( 'publish' == $post->post_status ) { 1069 $ptype = get_post_type_object($post->post_type); 1070 $view_post = $ptype->labels->view_item; 1071 $title = __('Click to edit this part of the permalink'); 1072 } else { 1073 $title = __('Temporary permalink. Click to edit this part.'); 1074 } 1068 $post_type_object = get_post_type_object( $post->post_type ); 1069 if ( current_user_can( $post_type_object->cap->read_post, $post->ID ) ) 1070 $view_post = $post_type_object->labels->view_item; 1075 1071 1076 1072 if ( false === strpos($permalink, '%postname%') && false === strpos($permalink, '%pagename%') ) { 1077 1073 $return = '<strong>' . __('Permalink:') . "</strong>\n" . '<span id="sample-permalink" tabindex="-1">' . $permalink . "</span>\n"; … … 1099 1095 } 1100 1096 } 1101 1097 1102 $post_name_html = '<span id="editable-post-name" title="' . $title. '">' . $post_name_abridged . '</span>';1098 $post_name_html = '<span id="editable-post-name" title="' . __('Click to edit this part of the permalink') . '">' . $post_name_abridged . '</span>'; 1103 1099 $display_link = str_replace(array('%pagename%','%postname%'), $post_name_html, $permalink); 1104 1100 $view_link = str_replace(array('%pagename%','%postname%'), $post_name, $permalink); 1105 1101 $return = '<strong>' . __('Permalink:') . "</strong>\n";