Ticket #8714: 8714.2.diff
File 8714.2.diff, 31.6 KB (added by , 13 years ago) |
---|
-
wp-admin/edit.php
110 110 111 111 if ( $post_del->post_type == 'attachment' ) { 112 112 if ( ! wp_delete_attachment($post_id) ) 113 wp_die( __( 'Error in deleting...') );113 wp_die( __( 'Error in deleting…' ) ); 114 114 } else { 115 115 if ( !wp_delete_post($post_id) ) 116 wp_die( __( 'Error in deleting...') );116 wp_die( __( 'Error in deleting…' ) ); 117 117 } 118 118 $deleted++; 119 119 } -
wp-admin/includes/class-pclzip.php
48 48 // 0 : PclZip Class integrated error handling 49 49 // 1 : PclError external library error handling. By enabling this 50 50 // you must ensure that you have included PclError library. 51 // [2,...] : reserved for futur use51 // [2,...] : reserved for future use 52 52 if (!defined('PCLZIP_ERROR_EXTERNAL')) { 53 53 define( 'PCLZIP_ERROR_EXTERNAL', 0 ); 54 54 } … … 853 853 // The list of the extracted files, with a status of the action. 854 854 // (see PclZip::listContent() for list entry format) 855 855 // -------------------------------------------------------------------------------- 856 // function extractByIndex($p_index, options...)856 // function extractByIndex($p_index, options...) 857 857 function extractByIndex($p_index) 858 858 { 859 859 $v_result=1; -
wp-admin/includes/class-wp-comments-list-table.php
449 449 $author_url = ''; 450 450 $author_url_display = preg_replace( '|http://(www\.)?|i', '', $author_url ); 451 451 if ( strlen( $author_url_display ) > 50 ) 452 $author_url_display = substr( $author_url_display, 0, 49 ) . ' ...';452 $author_url_display = substr( $author_url_display, 0, 49 ) . '…'; 453 453 454 454 echo "<strong>"; comment_author(); echo '</strong><br />'; 455 455 if ( !empty( $author_url ) ) -
wp-admin/includes/class-wp-plugin-install-list-table.php
166 166 //Limit description to 400char, and remove any HTML. 167 167 $description = strip_tags( $plugin['description'] ); 168 168 if ( strlen( $description ) > 400 ) 169 $description = mb_substr( $description, 0, 400 ) . '& #8230;';169 $description = mb_substr( $description, 0, 400 ) . '…'; 170 170 //remove any trailing entities 171 171 $description = preg_replace( '/&[^;\s]{0,6}$/', '', $description ); 172 172 //strip leading/trailing & multiple consecutive lines -
wp-admin/includes/class-wp-upgrader.php
48 48 /* translators: %s: directory name */ 49 49 $this->strings['fs_no_folder'] = __('Unable to locate needed folder (%s).'); 50 50 51 $this->strings['download_failed'] = __( 'Download failed.');52 $this->strings['installing_package'] = __( 'Installing the latest version…');53 $this->strings['folder_exists'] = __( 'Destination folder already exists.');54 $this->strings['mkdir_failed'] = __( 'Could not create directory.');55 $this->strings['incompatible_archive'] = __('The package could not be installed.' );51 $this->strings['download_failed'] = __( 'Download failed.' ); 52 $this->strings['installing_package'] = __( 'Installing the latest version…' ); 53 $this->strings['folder_exists'] = __( 'Destination folder already exists.' ); 54 $this->strings['mkdir_failed'] = __( 'Could not create directory.' ); 55 $this->strings['incompatible_archive'] = __('The package could not be installed.' ); 56 56 57 $this->strings['maintenance_start'] = __( 'Enabling Maintenance mode…');58 $this->strings['maintenance_end'] = __( 'Disabling Maintenance mode…');57 $this->strings['maintenance_start'] = __( 'Enabling Maintenance mode…' ); 58 $this->strings['maintenance_end'] = __( 'Disabling Maintenance mode…' ); 59 59 } 60 60 61 61 function fs_connect( $directories = array() ) { … … 370 370 var $show_before = ''; 371 371 372 372 function upgrade_strings() { 373 $this->strings['up_to_date'] = __( 'The plugin is at the latest version.');374 $this->strings['no_package'] = __( 'Update package not available.');375 $this->strings['downloading_package'] = __( 'Downloading update from <span class="code">%s</span>…');376 $this->strings['unpack_package'] = __( 'Unpacking the update…');377 $this->strings['deactivate_plugin'] = __( 'Deactivating the plugin…');378 $this->strings['remove_old'] = __( 'Removing the old version of the plugin…');379 $this->strings['remove_old_failed'] = __( 'Could not remove the old plugin.');380 $this->strings['process_failed'] = __( 'Plugin update failed.');381 $this->strings['process_success'] = __( 'Plugin updated successfully.');373 $this->strings['up_to_date'] = __( 'The plugin is at the latest version.' ); 374 $this->strings['no_package'] = __( 'Update package not available.' ); 375 $this->strings['downloading_package'] = __( 'Downloading update from <span class="code">%s</span>…' ); 376 $this->strings['unpack_package'] = __( 'Unpacking the update…' ); 377 $this->strings['deactivate_plugin'] = __( 'Deactivating the plugin…' ); 378 $this->strings['remove_old'] = __( 'Removing the old version of the plugin…' ); 379 $this->strings['remove_old_failed'] = __( 'Could not remove the old plugin.' ); 380 $this->strings['process_failed'] = __( 'Plugin update failed.' ); 381 $this->strings['process_success'] = __( 'Plugin updated successfully.' ); 382 382 } 383 383 384 384 function install_strings() { 385 $this->strings['no_package'] = __( 'Install package not available.');386 $this->strings['downloading_package'] = __( 'Downloading install package from <span class="code">%s</span>…');387 $this->strings['unpack_package'] = __( 'Unpacking the package…');388 $this->strings['installing_package'] = __( 'Installing the plugin…');389 $this->strings['process_failed'] = __( 'Plugin install failed.');390 $this->strings['process_success'] = __( 'Plugin installed successfully.');385 $this->strings['no_package'] = __( 'Install package not available.' ); 386 $this->strings['downloading_package'] = __( 'Downloading install package from <span class="code">%s</span>…' ); 387 $this->strings['unpack_package'] = __( 'Unpacking the package…' ); 388 $this->strings['installing_package'] = __( 'Installing the plugin…' ); 389 $this->strings['process_failed'] = __( 'Plugin install failed.' ); 390 $this->strings['process_success'] = __( 'Plugin installed successfully.' ); 391 391 } 392 392 393 393 function install($package) { … … 645 645 var $bulk = false; 646 646 647 647 function upgrade_strings() { 648 $this->strings['up_to_date'] = __( 'The theme is at the latest version.');649 $this->strings['no_package'] = __( 'Update package not available.');650 $this->strings['downloading_package'] = __( 'Downloading update from <span class="code">%s</span>…');651 $this->strings['unpack_package'] = __( 'Unpacking the update…');652 $this->strings['remove_old'] = __( 'Removing the old version of the theme…');653 $this->strings['remove_old_failed'] = __( 'Could not remove the old theme.');654 $this->strings['process_failed'] = __( 'Theme update failed.');655 $this->strings['process_success'] = __( 'Theme updated successfully.');648 $this->strings['up_to_date'] = __( 'The theme is at the latest version.' ); 649 $this->strings['no_package'] = __( 'Update package not available.' ); 650 $this->strings['downloading_package'] = __( 'Downloading update from <span class="code">%s</span>…' ); 651 $this->strings['unpack_package'] = __( 'Unpacking the update…' ); 652 $this->strings['remove_old'] = __( 'Removing the old version of the theme…' ); 653 $this->strings['remove_old_failed'] = __( 'Could not remove the old theme.' ); 654 $this->strings['process_failed'] = __( 'Theme update failed.' ); 655 $this->strings['process_success'] = __( 'Theme updated successfully.' ); 656 656 } 657 657 658 658 function install_strings() { 659 $this->strings['no_package'] = __( 'Install package not available.');660 $this->strings['downloading_package'] = __( 'Downloading install package from <span class="code">%s</span>…');661 $this->strings['unpack_package'] = __( 'Unpacking the package…');662 $this->strings['installing_package'] = __( 'Installing the theme…');663 $this->strings['process_failed'] = __( 'Theme install failed.');664 $this->strings['process_success'] = __( 'Theme installed successfully.');659 $this->strings['no_package'] = __( 'Install package not available.' ); 660 $this->strings['downloading_package'] = __( 'Downloading install package from <span class="code">%s</span>…' ); 661 $this->strings['unpack_package'] = __( 'Unpacking the package…' ); 662 $this->strings['installing_package'] = __( 'Installing the theme…' ); 663 $this->strings['process_failed'] = __( 'Theme install failed.' ); 664 $this->strings['process_success'] = __( 'Theme installed successfully.' ); 665 665 } 666 666 667 667 function install($package) { … … 928 928 class Core_Upgrader extends WP_Upgrader { 929 929 930 930 function upgrade_strings() { 931 $this->strings['up_to_date'] = __( 'WordPress is at the latest version.');932 $this->strings['no_package'] = __( 'Update package not available.');933 $this->strings['downloading_package'] = __( 'Downloading update from <span class="code">%s</span>…');934 $this->strings['unpack_package'] = __( 'Unpacking the update…');935 $this->strings['copy_failed'] = __( 'Could not copy files.');931 $this->strings['up_to_date'] = __( 'WordPress is at the latest version.' ); 932 $this->strings['no_package'] = __( 'Update package not available.' ); 933 $this->strings['downloading_package'] = __( 'Downloading update from <span class="code">%s</span>…' ); 934 $this->strings['unpack_package'] = __( 'Unpacking the update…' ); 935 $this->strings['copy_failed'] = __( 'Could not copy files.' ); 936 936 } 937 937 938 938 function upgrade($current) { … … 1106 1106 function after() { 1107 1107 $this->plugin = $this->upgrader->plugin_info(); 1108 1108 if ( !empty($this->plugin) && !is_wp_error($this->result) && $this->plugin_active ){ 1109 show_message( __('Reactivating the plugin…'));1109 show_message( __( 'Reactivating the plugin…' ) ); 1110 1110 echo '<iframe style="border:0;overflow:hidden" width="100%" height="170px" src="' . wp_nonce_url('update.php?action=activate-plugin&networkwide=' . $this->plugin_network_active . '&plugin=' . $this->plugin, 'activate-plugin_' . $this->plugin) .'"></iframe>'; 1111 1111 } 1112 1112 -
wp-admin/includes/dashboard.php
842 842 $publisher = "<strong>$publisher</strong>"; 843 843 844 844 $content = $item->get_content(); 845 $content = wp_html_excerpt($content, 50) . ' ...';845 $content = wp_html_excerpt($content, 50) . ' …'; 846 846 847 847 if ( $link ) 848 848 /* translators: incoming links feed, %1$s is other person, %3$s is content */ … … 1036 1036 * @return bool False on failure. True on success. 1037 1037 */ 1038 1038 function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = array() ) { 1039 $loading = '<p class="widget-loading hide-if-no-js">' . __( 'Loading& #8230;' ) . '</p><p class="hide-if-js">' . __( 'This widget requires JavaScript.' ) . '</p>';1039 $loading = '<p class="widget-loading hide-if-no-js">' . __( 'Loading…' ) . '</p><p class="hide-if-js">' . __( 'This widget requires JavaScript.' ) . '</p>'; 1040 1040 $doing_ajax = ( defined('DOING_AJAX') && DOING_AJAX ); 1041 1041 1042 1042 if ( empty($check_urls) ) { -
wp-admin/includes/media.php
317 317 * 318 318 * @param unknown_type $content_func 319 319 */ 320 function wp_iframe($content_func /* ... */) {320 function wp_iframe($content_func) { 321 321 _wp_admin_html_begin(); 322 322 ?> 323 323 <title><?php bloginfo('name') ?> › <?php _e('Uploads'); ?> — <?php _e('WordPress'); ?></title> -
wp-admin/includes/misc.php
225 225 $short_url = str_replace( 'www.', '', $short_url ); 226 226 $short_url = untrailingslashit( $short_url ); 227 227 if ( strlen( $short_url ) > 35 ) 228 $short_url = substr( $short_url, 0, 32 ) . ' ...';228 $short_url = substr( $short_url, 0, 32 ) . '…'; 229 229 return $short_url; 230 230 } 231 231 -
wp-admin/includes/update-core.php
424 424 return new WP_Error( 'mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires MySQL version %2$s or higher. You are running version %3$s.'), $wp_version, $required_mysql_version, $mysql_version ) ); 425 425 426 426 // Sanity check the unzipped distribution 427 apply_filters( 'update_feedback', __('Verifying the unpacked files…'));427 apply_filters( 'update_feedback', __( 'Verifying the unpacked files…' ) ); 428 428 $distro = ''; 429 429 $roots = array( '/wordpress/', '/wordpress-mu/' ); 430 430 foreach( $roots as $root ) { … … 438 438 return new WP_Error('insane_distro', __('The update could not be unpacked') ); 439 439 } 440 440 441 apply_filters( 'update_feedback', __('Installing the latest version…'));441 apply_filters( 'update_feedback', __( 'Installing the latest version…' ) ); 442 442 443 443 // Create maintenance file to signal that we are upgrading 444 444 $maintenance_string = '<?php $upgrading = ' . time() . '; ?>'; … … 521 521 } 522 522 523 523 // Upgrade DB with separate request 524 apply_filters( 'update_feedback', __('Upgrading database…'));524 apply_filters( 'update_feedback', __( 'Upgrading database…' ) ); 525 525 $db_upgrade_url = admin_url('upgrade.php?step=upgrade_db'); 526 526 wp_remote_post($db_upgrade_url, array('timeout' => 60)); 527 527 -
wp-admin/includes/upgrade.php
247 247 248 248 <blockquote>Hi there! I'm a bike messenger by day, aspiring actor by night, and this is my blog. I live in Los Angeles, have a great dog named Jack, and I like piña coladas. (And gettin' caught in the rain.)</blockquote> 249 249 250 ...or something like this:250 …or something like this: 251 251 252 252 <blockquote>The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickies to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.</blockquote> 253 253 -
wp-admin/network.php
103 103 $parent_file = 'tools.php'; 104 104 } 105 105 106 $network_help = '<p>' . __( 'This screen allows you to configure a network as having subdomains (<code>site1.example.com</code>) or subdirectories (<code>example.com/site1</code>). Subdomains require wildcard subdomains to be enabled in Apache and DNS records, if your host allows it.') . '</p>' .107 '<p>' . __( 'Choose subdomains or subdirectories; this can only be switched afterwards by reconfiguring your install. Fill out the network details, and click install. If this does not work, you may have to add a wildcard DNS record (for subdomains) or change to another setting in Permalinks (for subdirectories).') . '</p>' .108 '<p>' . __( 'The next screen for Network Setup will give you individually-generated lines of code to add to your wp-config.php and .htaccess files. Make sure the settings of your FTP client make files starting with a dot visible, so that you can find .htaccess; you may have to create this file if it really is not there. Make backup copies of those two files.') . '</p>' .109 '<p>' . __( 'Add a <code>blogs.dir</code> directory under <code>/wp-content</code> and add the designated lines of code to wp-config.php (just before <code>/*...stop editing...*/</code>) and <code>.htaccess</code> (replacing the existing WordPress rules).') . '</p>' .110 '<p>' . __( 'Once you add this code and refresh your browser, multisite should be enabled. This screen, now in the Network Admin navigation menu, will keep an archive of the added code. You can toggle between Network Admin and Site Admin by clicking on the Network Admin or an individual site name under the My Sites dropdown in the Toolbar.') . '</p>' .111 '<p>' . __( 'The choice of subdirectory sites is disabled if this setup is more than a month old because of permalink problems with “/blog/” from the main site. This disabling will be addressed in a future version.') . '</p>' .112 '<p><strong>' . __( 'For more information:') . '</strong></p>' .113 '<p>' . __( '<a href="http://codex.wordpress.org/Create_A_Network" target="_blank">Documentation on Creating a Network</a>') . '</p>' .114 '<p>' . __( '<a href="http://codex.wordpress.org/Tools_Network_Screen" target="_blank">Documentation on the Network Screen</a>') . '</p>';106 $network_help = '<p>' . __( 'This screen allows you to configure a network as having subdomains (<code>site1.example.com</code>) or subdirectories (<code>example.com/site1</code>). Subdomains require wildcard subdomains to be enabled in Apache and DNS records, if your host allows it.' ) . '</p>' . 107 '<p>' . __( 'Choose subdomains or subdirectories; this can only be switched afterwards by reconfiguring your install. Fill out the network details, and click install. If this does not work, you may have to add a wildcard DNS record (for subdomains) or change to another setting in Permalinks (for subdirectories).' ) . '</p>' . 108 '<p>' . __( 'The next screen for Network Setup will give you individually-generated lines of code to add to your wp-config.php and .htaccess files. Make sure the settings of your FTP client make files starting with a dot visible, so that you can find .htaccess; you may have to create this file if it really is not there. Make backup copies of those two files.' ) . '</p>' . 109 '<p>' . __( 'Add a <code>blogs.dir</code> directory under <code>/wp-content</code> and add the designated lines of code to wp-config.php (just before <code>/*…stop editing…*/</code>) and <code>.htaccess</code> (replacing the existing WordPress rules).' ) . '</p>' . 110 '<p>' . __( 'Once you add this code and refresh your browser, multisite should be enabled. This screen, now in the Network Admin navigation menu, will keep an archive of the added code. You can toggle between Network Admin and Site Admin by clicking on the Network Admin or an individual site name under the My Sites dropdown in the Toolbar.' ) . '</p>' . 111 '<p>' . __( 'The choice of subdirectory sites is disabled if this setup is more than a month old because of permalink problems with “/blog/” from the main site. This disabling will be addressed in a future version.' ) . '</p>' . 112 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 113 '<p>' . __( '<a href="http://codex.wordpress.org/Create_A_Network" target="_blank">Documentation on Creating a Network</a>' ) . '</p>' . 114 '<p>' . __( '<a href="http://codex.wordpress.org/Tools_Network_Screen" target="_blank">Documentation on the Network Screen</a>' ) . '</p>'; 115 115 116 116 get_current_screen()->add_help_tab( array( 117 117 'id' => 'network', -
wp-admin/press-this.php
582 582 </div> 583 583 </div> 584 584 585 <div id="waiting" style="display: none"><img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> <?php esc_html_e( 'Loading ...' ); ?></div>585 <div id="waiting" style="display: none"><img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> <?php esc_html_e( 'Loading…' ); ?></div> 586 586 587 587 <div id="extra-fields" style="display: none"></div> 588 588 -
wp-admin/setup-config.php
130 130 <tr> 131 131 <th scope="row"><label for="pwd">Password</label></th> 132 132 <td><input name="pwd" id="pwd" type="text" size="25" value="password" /></td> 133 <td> ...and your MySQL password.</td>133 <td>…and your MySQL password.</td> 134 134 </tr> 135 135 <tr> 136 136 <th scope="row"><label for="dbhost">Database Host</label></th> -
wp-admin/theme-editor.php
123 123 $functions = wp_doc_link_parse( $content ); 124 124 125 125 $docs_select = '<select name="docs-list" id="docs-list">'; 126 $docs_select .= '<option value="">' . esc_attr__( 'Function Name ...' ) . '</option>';126 $docs_select .= '<option value="">' . esc_attr__( 'Function Name…' ) . '</option>'; 127 127 foreach ( $functions as $function ) { 128 128 $docs_select .= '<option value="' . esc_attr( urlencode( $function ) ) . '">' . htmlspecialchars( $function ) . '()</option>'; 129 129 } -
wp-admin/upload.php
97 97 wp_die( __( 'You are not allowed to move this post to the trash.' ) ); 98 98 99 99 if ( !wp_trash_post( $post_id ) ) 100 wp_die( __( 'Error in moving to trash ...' ) );100 wp_die( __( 'Error in moving to trash…' ) ); 101 101 } 102 102 $location = add_query_arg( array( 'trashed' => count( $post_ids ), 'ids' => join( ',', $post_ids ) ), $location ); 103 103 break; … … 109 109 wp_die( __( 'You are not allowed to move this post out of the trash.' ) ); 110 110 111 111 if ( !wp_untrash_post( $post_id ) ) 112 wp_die( __( 'Error in restoring from trash ...' ) );112 wp_die( __( 'Error in restoring from trash…' ) ); 113 113 } 114 114 $location = add_query_arg( 'untrashed', count( $post_ids ), $location ); 115 115 break; … … 121 121 wp_die( __( 'You are not allowed to delete this post.' ) ); 122 122 123 123 if ( !wp_delete_attachment( $post_id_del ) ) 124 wp_die( __( 'Error in deleting ...' ) );124 wp_die( __( 'Error in deleting…' ) ); 125 125 } 126 126 $location = add_query_arg( 'deleted', count( $post_ids ), $location ); 127 127 break; -
wp-includes/class-wp-editor.php
32 32 'wpautop' => true, // use wpautop? 33 33 'media_buttons' => true, // show insert/upload button(s) 34 34 'textarea_name' => $editor_id, // set the textarea name to something different, square brackets [] can be used here 35 'textarea_rows' => get_option('default_post_edit_rows', 10), // rows=" ..."35 'textarea_rows' => get_option('default_post_edit_rows', 10), // rows="…" 36 36 'tabindex' => '', 37 37 'editor_css' => '', // intended for extra styles for both visual and HTML editors buttons, needs to include the <style> tags, can use "scoped". 38 38 'editor_class' => '', // add extra class(es) to the editor textarea -
wp-includes/class-wp-xmlrpc-server.php
3526 3526 3527 3527 // prevent really long link text 3528 3528 if ( strlen($context[1]) > 100 ) 3529 $context[1] = substr($context[1], 0, 100) . ' ...';3529 $context[1] = substr($context[1], 0, 100) . '…'; 3530 3530 3531 3531 $marker = '<wpcontext>'.$context[1].'</wpcontext>'; // set up our marker 3532 3532 $excerpt= str_replace($context[0], $marker, $excerpt); // swap out the link for our marker … … 3544 3544 3545 3545 $pagelinkedfrom = str_replace('&', '&', $pagelinkedfrom); 3546 3546 3547 $context = '[...] ' . esc_html( $excerpt ) . ' [ ...]';3547 $context = '[...] ' . esc_html( $excerpt ) . ' […]'; 3548 3548 $pagelinkedfrom = $wpdb->escape( $pagelinkedfrom ); 3549 3549 3550 3550 $comment_post_ID = (int) $post_ID; -
wp-includes/comment-template.php
419 419 for ($i=0; $i<$k; $i++) { 420 420 $excerpt .= $blah[$i] . ' '; 421 421 } 422 $excerpt .= ($use_dotdotdot) ? ' ...' : '';422 $excerpt .= ($use_dotdotdot) ? '…' : ''; 423 423 return apply_filters('get_comment_excerpt', $excerpt); 424 424 } 425 425 -
wp-includes/comment.php
1727 1727 else 1728 1728 $excerpt = apply_filters('the_excerpt', $post->post_excerpt); 1729 1729 $excerpt = str_replace(']]>', ']]>', $excerpt); 1730 $excerpt = wp_html_excerpt($excerpt, 252) . ' ...';1730 $excerpt = wp_html_excerpt($excerpt, 252) . '…'; 1731 1731 1732 1732 $post_title = apply_filters('the_title', $post->post_title, $post->ID); 1733 1733 $post_title = strip_tags($post_title); -
wp-includes/deprecated.php
1704 1704 * @param int $cut Optional. Amount of words to keep for the content. 1705 1705 * @param int $encode_html Optional. How to encode the content. 1706 1706 */ 1707 function the_content_rss($more_link_text='(more ...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) {1707 function the_content_rss($more_link_text='(more…)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) { 1708 1708 _deprecated_function( __FUNCTION__, '2.9', 'the_content_feed' ); 1709 1709 $content = get_the_content($more_link_text, $stripteaser, $more_file); 1710 1710 $content = apply_filters('the_content_rss', $content); … … 1731 1731 /** @todo Check performance, might be faster to use array slice instead. */ 1732 1732 for ( $i=0; $i<$k; $i++ ) 1733 1733 $excerpt .= $blah[$i].' '; 1734 $excerpt .= ($use_dotdotdot) ? ' ...' : '';1734 $excerpt .= ($use_dotdotdot) ? '…' : ''; 1735 1735 $content = $excerpt; 1736 1736 } 1737 1737 $content = str_replace(']]>', ']]>', $content); -
wp-includes/formatting.php
1899 1899 $text = apply_filters('the_content', $text); 1900 1900 $text = str_replace(']]>', ']]>', $text); 1901 1901 $excerpt_length = apply_filters('excerpt_length', 55); 1902 $excerpt_more = apply_filters('excerpt_more', ' ' . '[ ...]');1902 $excerpt_more = apply_filters('excerpt_more', ' ' . '[…]'); 1903 1903 $text = wp_trim_words( $text, $excerpt_length, $excerpt_more ); 1904 1904 } 1905 1905 return apply_filters('wp_trim_excerpt', $text, $raw_excerpt); -
wp-includes/pluggable.php
1025 1025 /* translators: 1: comment author, 2: author IP, 3: author domain */ 1026 1026 $notify_message .= sprintf( __('Website: %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 1027 1027 $notify_message .= sprintf( __('URL : %s'), $comment->comment_author_url ) . "\r\n"; 1028 $notify_message .= __('Excerpt: ') . "\r\n" . sprintf('[ ...] %s [...]', $comment->comment_content ) . "\r\n\r\n";1028 $notify_message .= __('Excerpt: ') . "\r\n" . sprintf('[…] %s […]', $comment->comment_content ) . "\r\n\r\n"; 1029 1029 $notify_message .= __('You can see all pingbacks on this post here: ') . "\r\n"; 1030 1030 /* translators: 1: blog name, 2: post title */ 1031 1031 $subject = sprintf( __('[%1$s] Pingback: "%2$s"'), $blogname, $post->post_title ); -
wp-includes/post-template.php
181 181 global $post, $more, $page, $pages, $multipage, $preview; 182 182 183 183 if ( null === $more_link_text ) 184 $more_link_text = __( '(more ...)' );184 $more_link_text = __( '(more…)' ); 185 185 186 186 $output = ''; 187 187 $hasTeaser = false; -
wp-includes/post.php
3088 3088 $excerpt = strip_tags($post_excerpt ? $post_excerpt : $post_content); 3089 3089 3090 3090 if (strlen($excerpt) > 255) { 3091 $excerpt = substr($excerpt,0,252) . ' ...';3091 $excerpt = substr($excerpt,0,252) . '…'; 3092 3092 } 3093 3093 3094 3094 $trackback_urls = explode(',', $tb_list); -
wp-includes/script-loader.php
498 498 499 499 wp_localize_script( 'autosave', 'autosaveL10n', array( 500 500 'autosaveInterval' => AUTOSAVE_INTERVAL, 501 'savingText' => __( 'Saving Draft…'),502 'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.')501 'savingText' => __( 'Saving Draft...' ), 502 'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.' ) 503 503 ) ); 504 504 505 505 } -
wp-login.php
227 227 $message = apply_filters('retrieve_password_message', $message, $key); 228 228 229 229 if ( $message && !wp_mail($user_email, $title, $message) ) 230 wp_die( __( 'The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') );230 wp_die( __( 'The e-mail could not be sent.' ) . "<br />\n" . __( 'Possible reason: your host may have disabled the mail() function…' ) ); 231 231 232 232 return true; 233 233 } … … 317 317 $user_pass = wp_generate_password( 12, false); 318 318 $user_id = wp_create_user( $sanitized_user_login, $user_pass, $user_email ); 319 319 if ( ! $user_id ) { 320 $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn’t register you ...please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) );320 $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn’t register you… please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) ); 321 321 return $errors; 322 322 } 323 323 -
wp-trackback.php
87 87 if ( !pings_open($tb_id) ) 88 88 trackback_response(1, 'Sorry, trackbacks are closed for this item.'); 89 89 90 $title = wp_html_excerpt( $title, 250 ) .'...';91 $excerpt = wp_html_excerpt( $excerpt, 252 ) .'...';90 $title = wp_html_excerpt( $title, 250 ) . '…'; 91 $excerpt = wp_html_excerpt( $excerpt, 252 ) . '…'; 92 92 93 93 $comment_post_ID = (int) $tb_id; 94 94 $comment_author = $blog_name;