[wp-cvs] wordpress/wp-admin index.php,1.18,1.19

Matthew Mullenweg saxmatt at users.sourceforge.net
Fri Feb 11 00:59:54 GMT 2005


Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10877/wp-admin

Modified Files:
	index.php 
Log Message:
Better error checking

Index: index.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/index.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** index.php	11 Feb 2005 00:38:20 -0000	1.18
--- index.php	11 Feb 2005 00:59:50 -0000	1.19
***************
*** 90,94 ****
  ?>
  <div id="incominglinks">
! <h3><?php _e('Incoming Links'); ?> <cite><a href="http://feeds.technorati.com/cosmos/search.html?url=<?php echo trailingslashit(get_option('home')); ?>&amp;partner=wordpress"><?php _e('More'); ?> &raquo;</a></cite></h3>
  <ul>
  <?php
--- 90,94 ----
  ?>
  <div id="incominglinks">
! <h3><?php _e('Incoming Links'); ?> <cite><a href="http://www.technorati.com/cosmos/search.html?url=<?php echo trailingslashit(get_option('home')); ?>&amp;partner=wordpress"><?php _e('More'); ?> &raquo;</a></cite></h3>
  <ul>
  <?php
***************
*** 108,112 ****
  <?php
  $rss = @fetch_rss('http://wordpress.org/development/feed/');
! if ( $rss ) {
  ?>
  <h3>WordPress Development Blog</h3>
--- 108,112 ----
  <?php
  $rss = @fetch_rss('http://wordpress.org/development/feed/');
! if ( isset($rss->items) && 0 != count($rss->items) ) {
  ?>
  <h3>WordPress Development Blog</h3>
***************
*** 125,130 ****
  <?php
  $rss = @fetch_rss('http://planet.wordpress.org/feed/');
! //var_dump($rss);
! if ( $rss ) {
  ?>
  <div id="planetnews">
--- 125,129 ----
  <?php
  $rss = @fetch_rss('http://planet.wordpress.org/feed/');
! if ( isset($rss->items) && 0 != count($rss->items) ) {
  ?>
  <div id="planetnews">



More information about the cvs mailing list