mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Dashboard updates from mdawaffe. see #7552
git-svn-id: https://develop.svn.wordpress.org/trunk@9219 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1581,11 +1581,13 @@ function wp_widget_rss_output( $rss, $args = array() ) {
|
||||
if ( empty($title) )
|
||||
$title = __('Untitled');
|
||||
$desc = '';
|
||||
$summary = '';
|
||||
if ( isset( $item['description'] ) && is_string( $item['description'] ) )
|
||||
$desc = $summary = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($item['description'], ENT_QUOTES))));
|
||||
$desc = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($item['description'], ENT_QUOTES))));
|
||||
elseif ( isset( $item['summary'] ) && is_string( $item['summary'] ) )
|
||||
$desc = $summary = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($item['summary'], ENT_QUOTES))));
|
||||
$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 ) . ' […]';
|
||||
$summary = $desc;
|
||||
|
||||
if ( $show_summary ) {
|
||||
$desc = '';
|
||||
|
||||
Reference in New Issue
Block a user