Ticket #18704: 18704.patch
File 18704.patch, 718 bytes (added by , 13 years ago) |
---|
-
.php
old new 806 806 $show_author = (int) $show_author; 807 807 $show_date = (int) $show_date; 808 808 809 if ( !$rss->get_item_quantity()) {809 if ( $rss->get_item_quantity() === FALSE ) { 810 810 echo '<ul><li>' . __( 'An error has occurred; the feed is probably down. Try again later.' ) . '</li></ul>'; 811 811 $rss->__destruct(); 812 812 unset($rss); 813 813 return; 814 814 } 815 else if ( $rss->get_item_quantity() == 0 ) { 816 echo '<ul><li>' . __( 'No posts are in the feed yet.' ) . '</li></ul>'; 817 $rss->__destruct(); 818 unset($rss); 819 return; 820 } 815 821 816 822 echo '<ul>'; 817 823 foreach ( $rss->get_items(0, $items) as $item ) {