mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 18:08:09 +01:00
Use wp_html_excerpt() instead of substr in rss widget. Props nbachiyski. fixes #8278
git-svn-id: http://svn.automattic.com/wordpress/trunk@9791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
04e8c3882a
commit
8a280ee764
@ -8,7 +8,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '2.7-beta3-9771';
|
||||
$wp_version = '2.7-beta3-9791';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
@ -1578,7 +1578,7 @@ function wp_widget_rss_output( $rss, $args = array() ) {
|
||||
elseif ( isset( $item['summary'] ) && is_string( $item['summary'] ) )
|
||||
$desc = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($item['summary'], ENT_QUOTES))));
|
||||
if ( 360 < strlen( $desc ) )
|
||||
$desc = substr( $desc, 0, 360 ) . ' […]';
|
||||
$desc = wp_html_excerpt( $desc, 360 ) . ' […]';
|
||||
$summary = $desc;
|
||||
|
||||
if ( $show_summary ) {
|
||||
|
Loading…
Reference in New Issue
Block a user