diff --git a/wp-includes/rss.php b/wp-includes/rss.php
index 6d8941ab38..6371793d8b 100644
|
a
|
b
|
class MagpieRSS { |
| 338 | 338 | function normalize () { |
| 339 | 339 | // if atom populate rss fields |
| 340 | 340 | if ( $this->is_atom() ) { |
| | 341 | $atom_items = count($this->items); |
| 341 | 342 | $this->channel['description'] = $this->channel['tagline']; |
| 342 | | for ( $i = 0; $i < count($this->items); $i++) { |
| | 343 | for ( $i = 0; $i < $atom_items; $i++) { |
| 343 | 344 | $item = $this->items[$i]; |
| 344 | 345 | if ( isset($item['summary']) ) |
| 345 | 346 | $item['description'] = $item['summary']; |
| … |
… |
class MagpieRSS { |
| 350 | 351 | } |
| 351 | 352 | } |
| 352 | 353 | elseif ( $this->is_rss() ) { |
| | 354 | $rss_items = count($this->items); |
| 353 | 355 | $this->channel['tagline'] = $this->channel['description']; |
| 354 | | for ( $i = 0; $i < count($this->items); $i++) { |
| | 356 | for ( $i = 0; $i < $rss_items; $i++) { |
| 355 | 357 | $item = $this->items[$i]; |
| 356 | 358 | if ( isset($item['description'])) |
| 357 | 359 | $item['summary'] = $item['description']; |