Changeset 8572 for trunk/wp-includes/rss.php
- Timestamp:
- 08/06/2008 08:31:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/rss.php
r8503 r8572 535 535 536 536 // if RSS parsed successfully 537 if ( $rss and!$rss->ERROR) {537 if ( $rss && !$rss->ERROR) { 538 538 539 539 // find Etag, and Last-Modified 540 foreach( $resp->headers as $h) {540 foreach( (array) $resp->headers as $h) { 541 541 // 2003-03-02 - Nicola Asuni (www.tecnick.com) - fixed bug "Undefined offset: 1" 542 542 if (strpos($h, ": ")) { … … 844 844 } 845 845 846 foreach ( $rss->items as $item ) {846 foreach ( (array) $rss->items as $item ) { 847 847 printf( 848 848 '<li><a href="%1$s" title="%2$s">%3$s</a></li>', … … 865 865 if ( $rss ) { 866 866 $rss->items = array_slice($rss->items, 0, $num_items); 867 foreach ( $rss->items as $item ) {867 foreach ( (array) $rss->items as $item ) { 868 868 echo "<li>\n"; 869 869 echo "<a href='$item[link]' title='$item[description]'>";
Note: See TracChangeset
for help on using the changeset viewer.