Make WordPress Core

Ticket #45389: 45389.patch

File 45389.patch, 541 bytes (added by ishitaka, 7 years ago)
  • src/wp-includes/post.php

     
    45464546                $excerpt = strip_tags( $postdata['post_excerpt'] ? $postdata['post_excerpt'] : $postdata['post_content'] );
    45474547
    45484548                if ( strlen( $excerpt ) > 255 ) {
    4549                         $excerpt = substr( $excerpt, 0, 252 ) . '…';
     4549                        $excerpt = mb_strcut( $excerpt, 0, 252 ) . '…';
    45504550                }
    45514551
    45524552                $trackback_urls = explode( ',', $tb_list );