Changeset 11928
- Timestamp:
- 09/14/2009 02:06:33 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r11925 r11928 921 921 * @return unknown 922 922 */ 923 function get_sample_permalink($id, $title =null, $name = null) {923 function get_sample_permalink($id, $title = null, $name = null) { 924 924 $post = &get_post($id); 925 925 if (!$post->ID) { … … 982 982 $post = &get_post($id); 983 983 list($permalink, $post_name) = get_sample_permalink($post->ID, $new_title, $new_slug); 984 if ( 'publish' == $post->post_status ) 984 985 if ( 'publish' == $post->post_status ) { 985 986 $view_post = 'post' == $post->post_type ? __('View Post') : __('View Page'); 987 $title = __('Click to edit this part of the permalink'); 988 } else { 989 $title = __('Temporary permalink. Click to edit this part.'); 990 } 986 991 987 992 if ( false === strpos($permalink, '%postname%') && false === strpos($permalink, '%pagename%') ) { … … 997 1002 } 998 1003 999 $title = __('Click to edit this part of the permalink'); 1000 if (function_exists('mb_strlen')) { 1001 if (mb_strlen($post_name) > 30) { 1004 if ( function_exists('mb_strlen') ) { 1005 if ( mb_strlen($post_name) > 30 ) { 1002 1006 $post_name_abridged = mb_substr($post_name, 0, 14). '…' . mb_substr($post_name, -14); 1003 1007 } else { … … 1005 1009 } 1006 1010 } else { 1007 if ( strlen($post_name) > 30) {1011 if ( strlen($post_name) > 30 ) { 1008 1012 $post_name_abridged = substr($post_name, 0, 14). '…' . substr($post_name, -14); 1009 1013 } else { -
trunk/wp-includes/script-loader.php
r11927 r11928 276 276 $scripts->localize( 'slug', 'slugL10n', array( 277 277 'requestFile' => admin_url('admin-ajax.php'), 278 'save' => __(' Save'),278 'save' => __('OK'), 279 279 'cancel' => __('Cancel'), 280 280 'l10n_print_after' => 'try{convertEntities(slugL10n);}catch(e){};'
Note: See TracChangeset
for help on using the changeset viewer.