WordPress.org

Make WordPress Core

Ticket #17608: 17608.patch

File 17608.patch, 9.6 KB (added by RyanMurphy, 3 years ago)

replaces ... and … with …

  • wp-login.php

     
    232232        $message = apply_filters('retrieve_password_message', $message, $key); 
    233233 
    234234        if ( $message && !wp_mail($user_email, $title, $message) ) 
    235                 wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') ); 
     235                wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function&#8230;') ); 
    236236 
    237237        return true; 
    238238} 
     
    324324        $user_pass = wp_generate_password( 12, false); 
    325325        $user_id = wp_create_user( $sanitized_user_login, $user_pass, $user_email ); 
    326326        if ( ! $user_id ) { 
    327                 $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn&#8217;t register you... please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) ); 
     327                $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn&#8217;t register you&#8230; please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) ); 
    328328                return $errors; 
    329329        } 
    330330 
  • wp-includes/default-widgets.php

     
    826826                $desc = str_replace( array("\n", "\r"), ' ', esc_attr( strip_tags( @html_entity_decode( $item->get_description(), ENT_QUOTES, get_option('blog_charset') ) ) ) ); 
    827827                $desc = wp_html_excerpt( $desc, 360 ); 
    828828 
    829                 // Append ellipsis. Change existing [...] to [&hellip;]. 
     829                // Append ellipsis. Change existing [...] to [&#8230;]. 
    830830                if ( '[...]' == substr( $desc, -5 ) ) 
    831                         $desc = substr( $desc, 0, -5 ) . '[&hellip;]'; 
    832                 elseif ( '[&hellip;]' != substr( $desc, -10 ) ) 
    833                         $desc .= ' [&hellip;]'; 
     831                        $desc = substr( $desc, 0, -5 ) . '[&#8230;]'; 
     832                elseif ( '[&#8230;]' != substr( $desc, -9 ) ) 
     833                        $desc .= ' [&#8230;]'; 
    834834 
    835835                $desc = esc_html( $desc ); 
    836836 
  • wp-includes/class-wp-xmlrpc-server.php

     
    35453545 
    35463546                $pagelinkedfrom = str_replace('&', '&amp;', $pagelinkedfrom); 
    35473547 
    3548                 $context = '[...] ' . esc_html( $excerpt ) . ' [...]'; 
     3548                $context = '[&#8230;] ' . esc_html( $excerpt ) . ' [&#8230;]'; 
    35493549                $pagelinkedfrom = $wpdb->escape( $pagelinkedfrom ); 
    35503550 
    35513551                $comment_post_ID = (int) $post_ID; 
  • wp-includes/formatting.php

     
    18431843 * Generates an excerpt from the content, if needed. 
    18441844 * 
    18451845 * The excerpt word amount will be 55 words and if the amount is greater than 
    1846  * that, then the string ' [...]' will be appended to the excerpt. If the string 
     1846 * that, then the string ' [&#8230;]' ([...]) will be appended to the excerpt. If the string 
    18471847 * is less than 55 words, then the content will be returned as is. 
    18481848 * 
    18491849 * The 55 word limit can be modified by plugins/themes using the excerpt_length filter 
    1850  * The ' [...]' string can be modified by plugins/themes using the excerpt_more filter 
     1850 * The ' [&#8230;]' string can be modified by plugins/themes using the excerpt_more filter 
    18511851 * 
    18521852 * @since 1.5.0 
    18531853 * 
     
    18641864                $text = apply_filters('the_content', $text); 
    18651865                $text = str_replace(']]>', ']]&gt;', $text); 
    18661866                $excerpt_length = apply_filters('excerpt_length', 55); 
    1867                 $excerpt_more = apply_filters('excerpt_more', ' ' . '[...]'); 
     1867                $excerpt_more = apply_filters('excerpt_more', ' ' . '[&#8230;]'); 
    18681868                $text = wp_trim_words( $text, $excerpt_length, $excerpt_more ); 
    18691869        } 
    18701870        return apply_filters('wp_trim_excerpt', $text, $raw_excerpt); 
     
    18771877 * 
    18781878 * @param string $text Text to trim. 
    18791879 * @param int $num_words Number of words. Default 55. 
    1880  * @param string $more What to append if $text needs to be trimmed. Default '&hellip;'. 
     1880 * @param string $more What to append if $text needs to be trimmed. Default '&#8230;'. 
    18811881 * @return string Trimmed text. 
    18821882 */ 
    18831883function wp_trim_words( $text, $num_words = 55, $more = null ) { 
    18841884        if ( null === $more ) 
    1885                 $more = __( '&hellip;' ); 
     1885                $more = __( '&#8230;' ); 
    18861886        $original_text = $text; 
    18871887        $text = wp_strip_all_tags( $text ); 
    18881888        $words_array = preg_split( "/[\n\r\t ]+/", $text, $num_words + 1, PREG_SPLIT_NO_EMPTY ); 
  • wp-includes/pluggable.php

     
    10261026                /* translators: 1: comment author, 2: author IP, 3: author domain */ 
    10271027                $notify_message .= sprintf( __('Website: %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 
    10281028                $notify_message .= sprintf( __('URL    : %s'), $comment->comment_author_url ) . "\r\n"; 
    1029                 $notify_message .= __('Excerpt: ') . "\r\n" . sprintf('[...] %s [...]', $comment->comment_content ) . "\r\n\r\n"; 
     1029                $notify_message .= __('Excerpt: ') . "\r\n" . sprintf('[&#8230;] %s [&#8230;]', $comment->comment_content ) . "\r\n\r\n"; 
    10301030                $notify_message .= __('You can see all pingbacks on this post here: ') . "\r\n"; 
    10311031                /* translators: 1: blog name, 2: post title */ 
    10321032                $subject = sprintf( __('[%1$s] Pingback: "%2$s"'), $blogname, $post->post_title ); 
  • wp-includes/script-loader.php

     
    206206                'file_cancelled' => __('File canceled.'), 
    207207                'upload_stopped' => __('Upload stopped.'), 
    208208                'dismiss' => __('Dismiss'), 
    209                 'crunching' => __('Crunching&hellip;'), 
     209                'crunching' => __('Crunching&#8230;'), 
    210210                'deleted' => __('moved to the trash.'), 
    211211                'error_uploading' => __('&#8220;%s&#8221; has failed to upload due to an error') 
    212212        ); 
  • wp-trackback.php

     
    8787        if ( !pings_open($tb_id) ) 
    8888                trackback_response(1, 'Sorry, trackbacks are closed for this item.'); 
    8989 
    90         $title =  wp_html_excerpt( $title, 250 ).'...'; 
    91         $excerpt = wp_html_excerpt( $excerpt, 252 ).'...'; 
     90        $title =  wp_html_excerpt( $title, 250 ).'&#8230;'; 
     91        $excerpt = wp_html_excerpt( $excerpt, 252 ).'&#8230;'; 
    9292 
    9393        $comment_post_ID = (int) $tb_id; 
    9494        $comment_author = $blog_name; 
     
    108108        do_action('trackback_post', $wpdb->insert_id); 
    109109        trackback_response(0); 
    110110} 
    111 ?> 
    112  No newline at end of file 
     111?> 
  • wp-admin/nav-menus.php

     
    418418foreach( (array) $nav_menus as $key => $_nav_menu ) { 
    419419        $_nav_menu->truncated_name = trim( wp_html_excerpt( $_nav_menu->name, 40 ) ); 
    420420        if ( $_nav_menu->truncated_name != $_nav_menu->name ) 
    421                 $_nav_menu->truncated_name .= '&hellip;'; 
     421                $_nav_menu->truncated_name .= '&#8230;'; 
    422422 
    423423        $nav_menus[$key]->truncated_name = $_nav_menu->truncated_name; 
    424424} 
  • wp-admin/setup-config.php

     
    105105        <li>Table prefix (if you want to run more than one WordPress in a single database) </li> 
    106106</ol> 
    107107<p><strong>If for any reason this automatic file creation doesn't work, don't worry. All this does is fill in the database information to a configuration file. You may also simply open <code>wp-config-sample.php</code> in a text editor, fill in your information, and save it as <code>wp-config.php</code>. </strong></p> 
    108 <p>In all likelihood, these items were supplied to you by your Web Host. If you do not have this information, then you will need to contact them before you can continue. If you&#8217;re all ready&hellip;</p> 
     108<p>In all likelihood, these items were supplied to you by your Web Host. If you do not have this information, then you will need to contact them before you can continue. If you&#8217;re all ready&#8230;</p> 
    109109 
    110110<p class="step"><a href="setup-config.php?step=1<?php if ( isset( $_GET['noapi'] ) ) echo '&amp;noapi'; ?>" class="button">Let&#8217;s go!</a></p> 
    111111<?php 
     
    263263                chmod(ABSPATH . 'wp-config.php', 0666); 
    264264                display_header(); 
    265265?> 
    266 <p>All right sparky! You've made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to&hellip;</p> 
     266<p>All right sparky! You've made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to&#8230;</p> 
    267267 
    268268<p class="step"><a href="install.php" class="button">Run the install</a></p> 
    269269<?php 
  • wp-admin/plugin-editor.php

     
    133133 
    134134                if ( !empty($functions) ) { 
    135135                        $docs_select = '<select name="docs-list" id="docs-list">'; 
    136                         $docs_select .= '<option value="">' . __( 'Function Name&hellip;' ) . '</option>'; 
     136                        $docs_select .= '<option value="">' . __( 'Function Name&#8230;' ) . '</option>'; 
    137137                        foreach ( $functions as $function) { 
    138138                                $docs_select .= '<option value="' . esc_attr( $function ) . '">' . esc_html( $function ) . '()</option>'; 
    139139                        }