Make WordPress Core

Ticket #45389: 45389.2.patch

File 45389.2.patch, 556 bytes (added by mukesh27, 7 years ago)

updated patch with mb_substr function.

  • wordpress/wp-includes/post.php

    diff -Naur wordpress/wp-includes/post.php wordpress/wp-includes/post.php
     
    43944394                $excerpt = strip_tags( $postdata['post_excerpt'] ? $postdata['post_excerpt'] : $postdata['post_content'] );
    43954395
    43964396                if ( strlen( $excerpt ) > 255 ) {
    4397                         $excerpt = substr( $excerpt, 0, 252 ) . '…';
     4397                        $excerpt = mb_substr( $excerpt, 0, 252 ) . '…';
    43984398                }
    43994399
    44004400                $trackback_urls = explode( ',', $tb_list );