WordPress.org

Make WordPress Core

Ticket #8714: 8714.4.diff

File 8714.4.diff, 17.5 KB (added by SergeyBiryukov, 2 years ago)

Excluded changes to &#8230

  • wp-admin/edit.php

     
    110110 
    111111                                if ( $post_del->post_type == 'attachment' ) { 
    112112                                        if ( ! wp_delete_attachment($post_id) ) 
    113                                                 wp_die( __('Error in deleting...') ); 
     113                                                wp_die( __( 'Error in deleting…' ) ); 
    114114                                } else { 
    115115                                        if ( !wp_delete_post($post_id) ) 
    116                                                 wp_die( __('Error in deleting...') ); 
     116                                                wp_die( __( 'Error in deleting…' ) ); 
    117117                                } 
    118118                                $deleted++; 
    119119                        } 
  • wp-admin/includes/class-wp-comments-list-table.php

     
    449449                        $author_url = ''; 
    450450                $author_url_display = preg_replace( '|http://(www\.)?|i', '', $author_url ); 
    451451                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 ) . '…'; 
    453453 
    454454                echo "<strong>"; comment_author(); echo '</strong><br />'; 
    455455                if ( !empty( $author_url ) ) 
  • wp-admin/includes/dashboard.php

     
    825825                        $publisher = "<strong>$publisher</strong>"; 
    826826 
    827827                $content = $item->get_content(); 
    828                 $content = wp_html_excerpt($content, 50) . ' ...'; 
     828                $content = wp_html_excerpt($content, 50) . ' &hellip;'; 
    829829 
    830830                if ( $link ) 
    831831                        /* translators: incoming links feed, %1$s is other person, %3$s is content */ 
  • wp-admin/includes/misc.php

     
    223223        $short_url = str_replace( 'www.', '', $short_url ); 
    224224        $short_url = untrailingslashit( $short_url ); 
    225225        if ( strlen( $short_url ) > 35 ) 
    226                 $short_url = substr( $short_url, 0, 32 ) . '...'; 
     226                $short_url = substr( $short_url, 0, 32 ) . '&hellip;'; 
    227227        return $short_url; 
    228228} 
    229229 
  • wp-admin/includes/upgrade.php

     
    245245 
    246246<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&#241;a coladas. (And gettin' caught in the rain.)</blockquote> 
    247247 
    248 ...or something like this: 
     248&hellip;or something like this: 
    249249 
    250250<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> 
    251251 
  • wp-admin/network.php

     
    103103        $parent_file = 'tools.php'; 
    104104} 
    105105 
    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 &#8220;/blog/&#8221; 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>/*&hellip;stop editing&hellip;*/</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 &#8220;/blog/&#8221; 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>'; 
    115115 
    116116get_current_screen()->add_help_tab( array( 
    117117        'id'      => 'network', 
  • wp-admin/press-this.php

     
    582582                        </div> 
    583583                </div> 
    584584 
    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&hellip;' ); ?></div> 
    586586 
    587587                <div id="extra-fields" style="display: none"></div> 
    588588 
  • wp-admin/theme-editor.php

     
    119119                        $functions = wp_doc_link_parse( $content ); 
    120120 
    121121                        $docs_select = '<select name="docs-list" id="docs-list">'; 
    122                         $docs_select .= '<option value="">' . esc_attr__( 'Function Name...' ) . '</option>'; 
     122                        $docs_select .= '<option value="">' . esc_attr__( 'Function Name&hellip;' ) . '</option>'; 
    123123                        foreach ( $functions as $function ) { 
    124124                                $docs_select .= '<option value="' . esc_attr( urlencode( $function ) ) . '">' . htmlspecialchars( $function ) . '()</option>'; 
    125125                        } 
  • wp-admin/upload.php

     
    9797                                        wp_die( __( 'You are not allowed to move this post to the trash.' ) ); 
    9898 
    9999                                if ( !wp_trash_post( $post_id ) ) 
    100                                         wp_die( __( 'Error in moving to trash...' ) ); 
     100                                        wp_die( __( 'Error in moving to trash&hellip;' ) ); 
    101101                        } 
    102102                        $location = add_query_arg( array( 'trashed' => count( $post_ids ), 'ids' => join( ',', $post_ids ) ), $location ); 
    103103                        break; 
     
    109109                                        wp_die( __( 'You are not allowed to move this post out of the trash.' ) ); 
    110110 
    111111                                if ( !wp_untrash_post( $post_id ) ) 
    112                                         wp_die( __( 'Error in restoring from trash...' ) ); 
     112                                        wp_die( __( 'Error in restoring from trash&hellip;' ) ); 
    113113                        } 
    114114                        $location = add_query_arg( 'untrashed', count( $post_ids ), $location ); 
    115115                        break; 
     
    121121                                        wp_die( __( 'You are not allowed to delete this post.' ) ); 
    122122 
    123123                                if ( !wp_delete_attachment( $post_id_del ) ) 
    124                                         wp_die( __( 'Error in deleting...' ) ); 
     124                                        wp_die( __( 'Error in deleting&hellip;' ) ); 
    125125                        } 
    126126                        $location = add_query_arg( 'deleted', count( $post_ids ), $location ); 
    127127                        break; 
  • wp-includes/class-wp-xmlrpc-server.php

     
    48804880 
    48814881                                // prevent really long link text 
    48824882                                if ( strlen($context[1]) > 100 ) 
    4883                                         $context[1] = substr($context[1], 0, 100) . '...'; 
     4883                                        $context[1] = substr($context[1], 0, 100) . '&hellip;'; 
    48844884 
    48854885                                $marker = '<wpcontext>'.$context[1].'</wpcontext>';    // set up our marker 
    48864886                                $excerpt= str_replace($context[0], $marker, $excerpt); // swap out the link for our marker 
     
    48984898 
    48994899                $pagelinkedfrom = str_replace('&', '&amp;', $pagelinkedfrom); 
    49004900 
    4901                 $context = '[...] ' . esc_html( $excerpt ) . ' [...]'; 
     4901                $context = '[...] ' . esc_html( $excerpt ) . ' [&hellip;]'; 
    49024902                $pagelinkedfrom = $wpdb->escape( $pagelinkedfrom ); 
    49034903 
    49044904                $comment_post_ID = (int) $post_ID; 
  • wp-includes/comment-template.php

     
    419419        for ($i=0; $i<$k; $i++) { 
    420420                $excerpt .= $blah[$i] . ' '; 
    421421        } 
    422         $excerpt .= ($use_dotdotdot) ? '...' : ''; 
     422        $excerpt .= ($use_dotdotdot) ? '&hellip;' : ''; 
    423423        return apply_filters('get_comment_excerpt', $excerpt); 
    424424} 
    425425 
  • wp-includes/comment.php

     
    17211721        else 
    17221722                $excerpt = apply_filters('the_excerpt', $post->post_excerpt); 
    17231723        $excerpt = str_replace(']]>', ']]&gt;', $excerpt); 
    1724         $excerpt = wp_html_excerpt($excerpt, 252) . '...'; 
     1724        $excerpt = wp_html_excerpt($excerpt, 252) . '&hellip;'; 
    17251725 
    17261726        $post_title = apply_filters('the_title', $post->post_title, $post->ID); 
    17271727        $post_title = strip_tags($post_title); 
  • wp-includes/deprecated.php

     
    17041704 * @param int $cut Optional. Amount of words to keep for the content. 
    17051705 * @param int $encode_html Optional. How to encode the content. 
    17061706 */ 
    1707 function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) { 
     1707function the_content_rss($more_link_text='(more&hellip;)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) { 
    17081708        _deprecated_function( __FUNCTION__, '2.9', 'the_content_feed' ); 
    17091709        $content = get_the_content($more_link_text, $stripteaser, $more_file); 
    17101710        $content = apply_filters('the_content_rss', $content); 
     
    17311731                /** @todo Check performance, might be faster to use array slice instead. */ 
    17321732                for ( $i=0; $i<$k; $i++ ) 
    17331733                        $excerpt .= $blah[$i].' '; 
    1734                 $excerpt .= ($use_dotdotdot) ? '...' : ''; 
     1734                $excerpt .= ($use_dotdotdot) ? '&hellip;' : ''; 
    17351735                $content = $excerpt; 
    17361736        } 
    17371737        $content = str_replace(']]>', ']]&gt;', $content); 
  • wp-includes/formatting.php

     
    20352035                $text = apply_filters('the_content', $text); 
    20362036                $text = str_replace(']]>', ']]&gt;', $text); 
    20372037                $excerpt_length = apply_filters('excerpt_length', 55); 
    2038                 $excerpt_more = apply_filters('excerpt_more', ' ' . '[...]'); 
     2038                $excerpt_more = apply_filters('excerpt_more', ' ' . '[&hellip;]'); 
    20392039                $text = wp_trim_words( $text, $excerpt_length, $excerpt_more ); 
    20402040        } 
    20412041        return apply_filters('wp_trim_excerpt', $text, $raw_excerpt); 
  • wp-includes/pluggable.php

     
    10401040                /* translators: 1: comment author, 2: author IP, 3: author domain */ 
    10411041                $notify_message .= sprintf( __('Website: %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n"; 
    10421042                $notify_message .= sprintf( __('URL    : %s'), $comment->comment_author_url ) . "\r\n"; 
    1043                 $notify_message .= __('Excerpt: ') . "\r\n" . sprintf('[...] %s [...]', $comment->comment_content ) . "\r\n\r\n"; 
     1043                $notify_message .= __('Excerpt: ') . "\r\n" . sprintf('[&hellip;] %s [&hellip;]', $comment->comment_content ) . "\r\n\r\n"; 
    10441044                $notify_message .= __('You can see all pingbacks on this post here: ') . "\r\n"; 
    10451045                /* translators: 1: blog name, 2: post title */ 
    10461046                $subject = sprintf( __('[%1$s] Pingback: "%2$s"'), $blogname, $post->post_title ); 
  • wp-includes/post-template.php

     
    181181        global $post, $more, $page, $pages, $multipage, $preview; 
    182182 
    183183        if ( null === $more_link_text ) 
    184                 $more_link_text = __( '(more...)' ); 
     184                $more_link_text = __( '(more&hellip;)' ); 
    185185 
    186186        $output = ''; 
    187187        $hasTeaser = false; 
  • wp-includes/post.php

     
    31043104                // form an excerpt 
    31053105                $excerpt = strip_tags($post_excerpt ? $post_excerpt : $post_content); 
    31063106 
    3107                 if (strlen($excerpt) > 255) { 
    3108                         $excerpt = substr($excerpt,0,252) . '...'; 
     3107                if ( strlen( $excerpt ) > 255 ) { 
     3108                        $excerpt = substr( $excerpt, 0, 252 ) . '&hellip;'; 
    31093109                } 
    31103110 
    31113111                $trackback_urls = explode(',', $tb_list); 
  • wp-login.php

     
    241241        $message = apply_filters('retrieve_password_message', $message, $key); 
    242242 
    243243        if ( $message && !wp_mail($user_email, $title, $message) ) 
    244                 wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function...') ); 
     244                wp_die( __( 'The e-mail could not be sent.' ) . "<br />\n" . __( 'Possible reason: your host may have disabled the mail() function&hellip;' ) ); 
    245245 
    246246        return true; 
    247247} 
     
    331331        $user_pass = wp_generate_password( 12, false); 
    332332        $user_id = wp_create_user( $sanitized_user_login, $user_pass, $user_email ); 
    333333        if ( ! $user_id ) { 
    334                 $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' ) ) ); 
     334                $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn&#8217;t register you&hellip; please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) ); 
    335335                return $errors; 
    336336        } 
    337337 
  • 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 ) . '&hellip;'; 
     91        $excerpt = wp_html_excerpt( $excerpt, 252 ) . '&hellip;'; 
    9292 
    9393        $comment_post_ID = (int) $tb_id; 
    9494        $comment_author = $blog_name;