Don't show two ellipses in wp_widget_rss_output(). Fixes #11244 props miqrogroove
git-svn-id: http://svn.automattic.com/wordpress/trunk@13328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
16a3d5e0a1
commit
b6050c6992
|
@ -806,7 +806,14 @@ function wp_widget_rss_output( $rss, $args = array() ) {
|
||||||
$title = __('Untitled');
|
$title = __('Untitled');
|
||||||
|
|
||||||
$desc = str_replace( array("\n", "\r"), ' ', esc_attr( strip_tags( @html_entity_decode( $item->get_description(), ENT_QUOTES, get_option('blog_charset') ) ) ) );
|
$desc = str_replace( array("\n", "\r"), ' ', esc_attr( strip_tags( @html_entity_decode( $item->get_description(), ENT_QUOTES, get_option('blog_charset') ) ) ) );
|
||||||
$desc = wp_html_excerpt( $desc, 360 ) . ' […]';
|
$desc = wp_html_excerpt( $desc, 360 );
|
||||||
|
|
||||||
|
// Append ellipsis. Change existing [...] to […].
|
||||||
|
if ( '[...]' == substr( $desc, -5 ) )
|
||||||
|
$desc = substr( $desc, 0, -5 ) . '[…]';
|
||||||
|
elseif ( '[…]' != substr( $desc, -10 ) )
|
||||||
|
$desc .= ' […]';
|
||||||
|
|
||||||
$desc = esc_html( $desc );
|
$desc = esc_html( $desc );
|
||||||
|
|
||||||
if ( $show_summary ) {
|
if ( $show_summary ) {
|
||||||
|
|
Loading…
Reference in New Issue