Changes from branches/2.6/wp-includes/widgets.php at r8568 to trunk/wp-includes/widgets.php at r8250
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/widgets.php
r8568 r8250 58 58 ); 59 59 60 $sidebar = array_merge($defaults, (array)$args);60 $sidebar = array_merge($defaults, $args); 61 61 62 62 $wp_registered_sidebars[$sidebar['id']] = $sidebar; … … 1044 1044 extract($args, EXTR_SKIP); 1045 1045 if ( is_numeric($widget_args) ) 1046 $widget_args = array( 'number' => $wid get_args );1046 $widget_args = array( 'number' => $widegt_args ); 1047 1047 $widget_args = wp_parse_args( $widget_args, array( 'number' => -1 ) ); 1048 1048 extract($widget_args, EXTR_SKIP); … … 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 1128 1133 $summary = ''; 1129 1134 if ( isset( $item['description'] ) && is_string( $item['description'] ) ) 1130 $ desc = $summary = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($item['description'], ENT_QUOTES))));1135 $summary = $item['description']; 1131 1136 elseif ( isset( $item['summary'] ) && is_string( $item['summary'] ) ) 1132 $desc = $summary = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($item['summary'], ENT_QUOTES)))); 1137 $summary = $item['summary']; 1138 1139 $desc = str_replace(array("\n", "\r"), ' ', attribute_escape(strip_tags(html_entity_decode($summary, ENT_QUOTES)))); 1133 1140 1134 1141 if ( $show_summary ) {
Note: See TracChangeset
for help on using the changeset viewer.