Changeset 8568
- Timestamp:
- 08/06/2008 03:50:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/wp-includes/widgets.php
r8539 r8568 1126 1126 $title = __('Untitled'); 1127 1127 $desc = ''; 1128 if ( isset( $item['description'] ) && is_string( $item['description'] ) )1129 $desc = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($item['description'], ENT_QUOTES))));1130 elseif ( isset( $item['summary'] ) && is_string( $item['summary'] ) )1131 $desc = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($item['summary'], ENT_QUOTES))));1132 1133 1128 $summary = ''; 1134 1129 if ( isset( $item['description'] ) && is_string( $item['description'] ) ) 1135 $ summary = $item['description'];1130 $desc = $summary = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($item['description'], ENT_QUOTES)))); 1136 1131 elseif ( isset( $item['summary'] ) && is_string( $item['summary'] ) ) 1137 $summary = $item['summary']; 1138 1139 $desc = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($summary, ENT_QUOTES)))); 1132 $desc = $summary = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($item['summary'], ENT_QUOTES)))); 1140 1133 1141 1134 if ( $show_summary ) {
Note: See TracChangeset
for help on using the changeset viewer.