Ticket #8714: 8714.7.diff
File 8714.7.diff, 12.5 KB (added by , 12 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-wp-comments-list-table.php
456 456 $author_url = ''; 457 457 $author_url_display = preg_replace( '|http://(www\.)?|i', '', $author_url ); 458 458 if ( strlen( $author_url_display ) > 50 ) 459 $author_url_display = substr( $author_url_display, 0, 49 ) . ' ...';459 $author_url_display = substr( $author_url_display, 0, 49 ) . '…'; 460 460 461 461 echo "<strong>"; comment_author(); echo '</strong><br />'; 462 462 if ( !empty( $author_url ) ) -
wp-admin/includes/dashboard.php
827 827 $publisher = "<strong>$publisher</strong>"; 828 828 829 829 $content = $item->get_content(); 830 $content = wp_html_excerpt($content, 50) . ' ...';830 $content = wp_html_excerpt($content, 50) . ' …'; 831 831 832 832 if ( $link ) 833 833 /* translators: incoming links feed, %1$s is other person, %3$s is content */ -
wp-admin/includes/misc.php
224 224 $short_url = str_replace( 'www.', '', $short_url ); 225 225 $short_url = untrailingslashit( $short_url ); 226 226 if ( strlen( $short_url ) > 35 ) 227 $short_url = substr( $short_url, 0, 32 ) . ' ...';227 $short_url = substr( $short_url, 0, 32 ) . '…'; 228 228 return $short_url; 229 229 } 230 230 -
wp-admin/includes/upgrade.php
184 184 185 185 <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> 186 186 187 ...or something like this:187 …or something like this: 188 188 189 189 <blockquote>The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys 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> 190 190 -
wp-admin/press-this.php
586 586 </div> 587 587 </div> 588 588 589 <div id="waiting" style="display: none"><span class="spinner"></span> <span><?php esc_html_e( 'Loading ...' ); ?></span></div>589 <div id="waiting" style="display: none"><span class="spinner"></span> <span><?php esc_html_e( 'Loading…' ); ?></span></div> 590 590 591 591 <div id="extra-fields" style="display: none"></div> 592 592 -
wp-admin/theme-editor.php
112 112 $functions = wp_doc_link_parse( $content ); 113 113 114 114 $docs_select = '<select name="docs-list" id="docs-list">'; 115 $docs_select .= '<option value="">' . esc_attr__( 'Function Name ...' ) . '</option>';115 $docs_select .= '<option value="">' . esc_attr__( 'Function Name…' ) . '</option>'; 116 116 foreach ( $functions as $function ) { 117 117 $docs_select .= '<option value="' . esc_attr( urlencode( $function ) ) . '">' . htmlspecialchars( $function ) . '()</option>'; 118 118 } -
wp-admin/upload.php
99 99 wp_die( __( 'You are not allowed to move this post to the trash.' ) ); 100 100 101 101 if ( !wp_trash_post( $post_id ) ) 102 wp_die( __( 'Error in moving to trash ...' ) );102 wp_die( __( 'Error in moving to trash…' ) ); 103 103 } 104 104 $location = add_query_arg( array( 'trashed' => count( $post_ids ), 'ids' => join( ',', $post_ids ) ), $location ); 105 105 break; … … 111 111 wp_die( __( 'You are not allowed to move this post out of the trash.' ) ); 112 112 113 113 if ( !wp_untrash_post( $post_id ) ) 114 wp_die( __( 'Error in restoring from trash ...' ) );114 wp_die( __( 'Error in restoring from trash…' ) ); 115 115 } 116 116 $location = add_query_arg( 'untrashed', count( $post_ids ), $location ); 117 117 break; … … 123 123 wp_die( __( 'You are not allowed to delete this post.' ) ); 124 124 125 125 if ( !wp_delete_attachment( $post_id_del ) ) 126 wp_die( __( 'Error in deleting ...' ) );126 wp_die( __( 'Error in deleting…' ) ); 127 127 } 128 128 $location = add_query_arg( 'deleted', count( $post_ids ), $location ); 129 129 break; -
wp-includes/class-wp-xmlrpc-server.php
5412 5412 5413 5413 // prevent really long link text 5414 5414 if ( strlen($context[1]) > 100 ) 5415 $context[1] = substr($context[1], 0, 100) . ' ...';5415 $context[1] = substr($context[1], 0, 100) . '…'; 5416 5416 5417 5417 $marker = '<wpcontext>'.$context[1].'</wpcontext>'; // set up our marker 5418 5418 $excerpt= str_replace($context[0], $marker, $excerpt); // swap out the link for our marker … … 5430 5430 5431 5431 $pagelinkedfrom = str_replace('&', '&', $pagelinkedfrom); 5432 5432 5433 $context = '[ ...] ' . esc_html( $excerpt ) . ' [...]';5433 $context = '[…] ' . esc_html( $excerpt ) . ' […]'; 5434 5434 $pagelinkedfrom = $wpdb->escape( $pagelinkedfrom ); 5435 5435 5436 5436 $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
1756 1756 else 1757 1757 $excerpt = apply_filters('the_excerpt', $post->post_excerpt); 1758 1758 $excerpt = str_replace(']]>', ']]>', $excerpt); 1759 $excerpt = wp_html_excerpt($excerpt, 252) . ' ...';1759 $excerpt = wp_html_excerpt($excerpt, 252) . '…'; 1760 1760 1761 1761 $post_title = apply_filters('the_title', $post->post_title, $post->ID); 1762 1762 $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
2131 2131 * Generates an excerpt from the content, if needed. 2132 2132 * 2133 2133 * The excerpt word amount will be 55 words and if the amount is greater than 2134 * that, then the string ' [ ...]' will be appended to the excerpt. If the string2134 * that, then the string ' […]' will be appended to the excerpt. If the string 2135 2135 * is less than 55 words, then the content will be returned as is. 2136 2136 * 2137 2137 * The 55 word limit can be modified by plugins/themes using the excerpt_length filter 2138 * The ' [ ...]' string can be modified by plugins/themes using the excerpt_more filter2138 * The ' […]' string can be modified by plugins/themes using the excerpt_more filter 2139 2139 * 2140 2140 * @since 1.5.0 2141 2141 * … … 2152 2152 $text = apply_filters('the_content', $text); 2153 2153 $text = str_replace(']]>', ']]>', $text); 2154 2154 $excerpt_length = apply_filters('excerpt_length', 55); 2155 $excerpt_more = apply_filters('excerpt_more', ' ' . '[ ...]');2155 $excerpt_more = apply_filters('excerpt_more', ' ' . '[…]'); 2156 2156 $text = wp_trim_words( $text, $excerpt_length, $excerpt_more ); 2157 2157 } 2158 2158 return apply_filters('wp_trim_excerpt', $text, $raw_excerpt); -
wp-includes/post-template.php
183 183 $post = get_post(); 184 184 185 185 if ( null === $more_link_text ) 186 $more_link_text = __( '(more ...)' );186 $more_link_text = __( '(more…)' ); 187 187 188 188 $output = ''; 189 189 $hasTeaser = false; -
wp-includes/post.php
3372 3372 // form an excerpt 3373 3373 $excerpt = strip_tags($post_excerpt ? $post_excerpt : $post_content); 3374 3374 3375 if ( strlen($excerpt) > 255) {3376 $excerpt = substr( $excerpt,0,252) . '...';3375 if ( strlen( $excerpt ) > 255 ) { 3376 $excerpt = substr( $excerpt, 0, 252 ) . '…'; 3377 3377 } 3378 3378 3379 3379 $trackback_urls = explode(',', $tb_list); -
wp-login.php
248 248 $message = apply_filters('retrieve_password_message', $message, $key); 249 249 250 250 if ( $message && !wp_mail($user_email, $title, $message) ) 251 wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function ...') );251 wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function…') ); 252 252 253 253 return true; 254 254 } … … 338 338 $user_pass = wp_generate_password( 12, false); 339 339 $user_id = wp_create_user( $sanitized_user_login, $user_pass, $user_email ); 340 340 if ( ! $user_id ) { 341 $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn’t register you ...please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) );341 $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn’t register you… please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) ); 342 342 return $errors; 343 343 } 344 344 -
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;