WordPress.org

Make WordPress Core

Ticket #11244: 11244-double-hellip.diff

File 11244-double-hellip.diff, 669 bytes (added by nacin, 8 years ago)
  • default-widgets.php

     
    804804                        $title = __('Untitled');
    805805
    806806                $desc = str_replace(array("\n", "\r"), ' ', esc_attr(strip_tags(@html_entity_decode($item->get_description(), ENT_QUOTES, get_option('blog_charset')))));
    807                 $desc = wp_html_excerpt( $desc, 360 ) . ' […]';
     807                $desc = trim( wp_html_excerpt( $desc, 360 ) ) . ' […]';
     808                $desc = str_replace( array('[…] […]', '[...] […]'), '[…]', $desc );
    808809                $desc = esc_html( $desc );
    809810
    810811                if ( $show_summary ) {