Changeset 2192
- Timestamp:
- 02/01/2005 09:52:36 AM (20 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/index.php
r2096 r2192 85 85 </div> 86 86 87 <?php 88 $rss = @fetch_rss('http://feedster.com/links.php?url='. trailingslashit(get_option('home')) .'&type=rss&limit=6'); 89 if ( isset($rss->items) && 0 != count($rss->items) ) { 90 ?> 91 <div> 92 <h3><?php _e('Incoming Links'); ?> <cite><a href="http://feedster.com/links.php?url=<?php echo trailingslashit(get_option('home')); ?>"><?php _e('More'); ?> »</a></cite></h3> 93 <ul> 94 <?php 95 $rss->items = array_slice($rss->items, 0, 6); 96 foreach ($rss->items as $item ) { 97 ?> 98 <li><a href="<?php echo wp_filter_kses($item['link']); ?>"><?php echo wp_specialchars($item['title']); ?></a></li> 99 <?php } ?> 100 </ul> 101 </div> 102 <?php } ?> 103 87 104 </div> 88 105 … … 95 112 <h3>WordPress Development Blog</h3> 96 113 <?php 97 $rss->items = array_slice($rss->items, 0, 4);114 $rss->items = array_slice($rss->items, 0, 3); 98 115 foreach ($rss->items as $item ) { 99 116 ?> 100 <h4><a href='<?php echo $item['link']; ?>'><?php echo wp_specialchars($item['title']); ?></a> — <?php echo human_time_diff( strtotime($item['pubdate'], time() ) ); ?> <?php _e('ago'); ?></h4>117 <h4><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a> — <?php echo human_time_diff( strtotime($item['pubdate'], time() ) ); ?> <?php _e('ago'); ?></h4> 101 118 <p><?php echo $item['description']; ?></p> 102 119 <?php … … 104 121 } 105 122 ?> 123 124 <?php 125 $rss = @fetch_rss('http://planet.wordpress.org/feed/'); 126 //var_dump($rss); 127 if ( $rss ) { 128 ?> 129 <h3><?php _e('Other WordPress News'); ?> <a href="http://planet.wordpress.org/"><?php _e('more'); ?> »</a></h3> 130 <ul> 131 <?php 132 $rss->items = array_slice($rss->items, 0, 20); 133 foreach ($rss->items as $item ) { 134 ?> 135 <li><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a></li> 136 <?php 137 } 138 ?> 139 </ul> 140 <?php 141 } 142 ?> 143 106 144 <br clear="all" /> 107 145 </div> -
trunk/wp-admin/upgrade-schema.php
r2166 r2192 73 73 option_can_override enum('Y','N') NOT NULL default 'Y', 74 74 option_type int(11) NOT NULL default '1', 75 option_value text NOT NULL,75 option_value longtext NOT NULL, 76 76 option_width int(11) NOT NULL default '20', 77 77 option_height int(11) NOT NULL default '8', -
trunk/wp-admin/wp-admin.css
r2052 r2192 506 506 border-bottom: 1px solid #ccc; 507 507 font-size: 16px; 508 margin: 1em 0; 508 margin: 1em 0 0; 509 } 510 511 #zeitgeist h3 cite { 512 font-size: 12px; 513 font-style: normal; 509 514 } 510 515 -
trunk/wp-includes/rss-functions.php
r2027 r2192 599 599 600 600 if ( !defined('MAGPIE_FETCH_TIME_OUT') ) { 601 define('MAGPIE_FETCH_TIME_OUT', 5); // 5second timeout601 define('MAGPIE_FETCH_TIME_OUT', 2); // 2 second timeout 602 602 } 603 603
Note: See TracChangeset
for help on using the changeset viewer.