Ticket #8714: 8714.8.diff
File 8714.8.diff, 11.3 KB (added by , 12 years ago) |
---|
-
wp-admin/edit.php
117 117 118 118 if ( $post_del->post_type == 'attachment' ) { 119 119 if ( ! wp_delete_attachment($post_id) ) 120 wp_die( __('Error in deleting. ..') );120 wp_die( __('Error in deleting.') ); 121 121 } else { 122 122 if ( !wp_delete_post($post_id) ) 123 wp_die( __('Error in deleting. ..') );123 wp_die( __('Error in deleting.') ); 124 124 } 125 125 $deleted++; 126 126 } -
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
223 223 $short_url = str_replace( array( 'http://', 'www.' ), '', $url ); 224 224 $short_url = untrailingslashit( $short_url ); 225 225 if ( strlen( $short_url ) > 35 ) 226 $short_url = substr( $short_url, 0, 32 ) . ' ...';226 $short_url = substr( $short_url, 0, 32 ) . '…'; 227 227 return $short_url; 228 228 } 229 229 -
wp-admin/press-this.php
585 585 </div> 586 586 </div> 587 587 588 <div id="waiting" style="display: none"><span class="spinner"></span> <span><?php esc_html_e( 'Loading ...' ); ?></span></div>588 <div id="waiting" style="display: none"><span class="spinner"></span> <span><?php esc_html_e( 'Loading…' ); ?></span></div> 589 589 590 590 <div id="extra-fields" style="display: none"></div> 591 591 -
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
5422 5422 5423 5423 // prevent really long link text 5424 5424 if ( strlen($context[1]) > 100 ) 5425 $context[1] = substr($context[1], 0, 100) . ' ...';5425 $context[1] = substr($context[1], 0, 100) . '…'; 5426 5426 5427 5427 $marker = '<wpcontext>'.$context[1].'</wpcontext>'; // set up our marker 5428 5428 $excerpt= str_replace($context[0], $marker, $excerpt); // swap out the link for our marker … … 5440 5440 5441 5441 $pagelinkedfrom = str_replace('&', '&', $pagelinkedfrom); 5442 5442 5443 $context = '[ ...] ' . esc_html( $excerpt ) . ' [...]';5443 $context = '[…] ' . esc_html( $excerpt ) . ' […]'; 5444 5444 $pagelinkedfrom = $wpdb->escape( $pagelinkedfrom ); 5445 5445 5446 5446 $comment_post_ID = (int) $post_ID; -
wp-includes/comment-template.php
393 393 /** 394 394 * Retrieve the excerpt of the current comment. 395 395 * 396 * Will cut each word and only output the first 20 words with ' ...' at the end.397 * If the word count is less than 20, then no truncating is done and no ' ...'396 * Will cut each word and only output the first 20 words with '…' at the end. 397 * If the word count is less than 20, then no truncating is done and no '…' 398 398 * will appear. 399 399 * 400 400 * @since 1.5.0 … … 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
1753 1753 else 1754 1754 $excerpt = apply_filters('the_excerpt', $post->post_excerpt); 1755 1755 $excerpt = str_replace(']]>', ']]>', $excerpt); 1756 $excerpt = wp_html_excerpt($excerpt, 252) . ' ...';1756 $excerpt = wp_html_excerpt($excerpt, 252) . '…'; 1757 1757 1758 1758 $post_title = apply_filters('the_title', $post->post_title, $post->ID); 1759 1759 $post_title = strip_tags($post_title); -
wp-includes/formatting.php
2161 2161 * Generates an excerpt from the content, if needed. 2162 2162 * 2163 2163 * The excerpt word amount will be 55 words and if the amount is greater than 2164 * that, then the string ' [ ...]' will be appended to the excerpt. If the string2164 * that, then the string ' […]' will be appended to the excerpt. If the string 2165 2165 * is less than 55 words, then the content will be returned as is. 2166 2166 * 2167 2167 * The 55 word limit can be modified by plugins/themes using the excerpt_length filter 2168 * The ' [ ...]' string can be modified by plugins/themes using the excerpt_more filter2168 * The ' […]' string can be modified by plugins/themes using the excerpt_more filter 2169 2169 * 2170 2170 * @since 1.5.0 2171 2171 * … … 2182 2182 $text = apply_filters('the_content', $text); 2183 2183 $text = str_replace(']]>', ']]>', $text); 2184 2184 $excerpt_length = apply_filters('excerpt_length', 55); 2185 $excerpt_more = apply_filters('excerpt_more', ' ' . '[ ...]');2185 $excerpt_more = apply_filters('excerpt_more', ' ' . '[…]'); 2186 2186 $text = wp_trim_words( $text, $excerpt_length, $excerpt_more ); 2187 2187 } 2188 2188 return apply_filters('wp_trim_excerpt', $text, $raw_excerpt); -
wp-includes/post-formats.php
877 877 $post = get_post(); 878 878 879 879 if ( null === $more_link_text ) 880 $more_link_text = __( '(more ...)' );880 $more_link_text = __( '(more…)' ); 881 881 882 882 $output = ''; 883 883 $has_teaser = false; -
wp-includes/post-template.php
181 181 $post = get_post(); 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 $has_teaser = false; -
wp-includes/post.php
3339 3339 $excerpt = strip_tags($post_excerpt ? $post_excerpt : $post_content); 3340 3340 3341 3341 if (strlen($excerpt) > 255) { 3342 $excerpt = substr($excerpt,0,252) . ' ...';3342 $excerpt = substr($excerpt,0,252) . '…'; 3343 3343 } 3344 3344 3345 3345 $trackback_urls = explode(',', $tb_list); -
wp-login.php
265 265 $message = apply_filters('retrieve_password_message', $message, $key); 266 266 267 267 if ( $message && !wp_mail($user_email, $title, $message) ) 268 wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function. ..') );268 wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function.') ); 269 269 270 270 return true; 271 271 } … … 355 355 $user_pass = wp_generate_password( 12, false); 356 356 $user_id = wp_create_user( $sanitized_user_login, $user_pass, $user_email ); 357 357 if ( ! $user_id ) { 358 $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn’t register you ...please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) );358 $errors->add( 'registerfail', sprintf( __( '<strong>ERROR</strong>: Couldn’t register you… please contact the <a href="mailto:%s">webmaster</a> !' ), get_option( 'admin_email' ) ) ); 359 359 return $errors; 360 360 } 361 361 -
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;