From c52c908248bbad3aa08a2244b35c1abcacda488d Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Wed, 11 Oct 2006 23:03:17 +0000 Subject: [PATCH] The changing of the pies. Now using SimplePie. props to gsnedders. fixes #2864 git-svn-id: https://develop.svn.wordpress.org/trunk@4378 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/index.php | 35 +- wp-includes/rss.php | 893 +++----------------------------------------- 2 files changed, 68 insertions(+), 860 deletions(-) diff --git a/wp-admin/index.php b/wp-admin/index.php index c6d2e9130b..2bfbc639e1 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -16,17 +16,16 @@ $today = current_time('mysql', 1);

items) && 0 != count($rss->items) ) { +$rss = fetch_simplepie('http://feeds.technorati.com/cosmos/rss/?url='. trailingslashit(get_option('home')) .'&partner=wordpress'); +if ( $rss && $rss->get_item_quantity() > 0 ) { ?> @@ -129,17 +128,16 @@ if (0 < $numcats) $numcats = number_format($numcats);

documentation or visit the support forums."); ?>

items) && 0 != count($rss->items) ) { +$rss = fetch_simplepie('http://wordpress.org/development/feed/'); +if ( $rss && $rss->get_item_quantity() > 0 ) { ?>

items = array_slice($rss->items, 0, 3); -foreach ($rss->items as $item ) { +foreach ($rss->get_items(0, 3) as $item ) { ?> -

'>

-

+

get_title()); ?>get_date('U') ) ); ?>

+

get_description(); ?>

items as $item ) {
items) && 0 != count($rss->items) ) { +$rss = fetch_simplepie('http://planet.wordpress.org/feed/'); +if ( $rss && $rss->get_item_quantity() > 0 ) { ?>