Changeset 6431 for trunk/wp-admin/index-extra.php
- Timestamp:
- 12/20/2007 08:23:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/index-extra.php
r6026 r6431 10 10 11 11 $rss_feed = apply_filters( 'dashboard_incoming_links_feed', 'http://blogsearch.google.com/blogsearch_feeds?hl=en&scoring=d&ie=utf-8&num=10&output=rss&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) ); 12 $more_link = apply_filters( 'dashboard_incoming_links_link', 'http://blogsearch.google.com/blogsearch?hl=en&scoring=d&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) ); 12 13 13 14 14 $rss = @fetch_rss( $rss_feed ); 15 15 if ( isset($rss->items) && 1 < count($rss->items) ) { // Technorati returns a 1-item feed when it has no results 16 16 ?> 17 <h3><?php _e('Incoming Links'); ?> <cite><a href="<?php echo htmlspecialchars( $more_link ); ?>"><?php _e('More »'); ?></a></cite></h3> 17 18 18 <ul> 19 19 <?php … … 25 25 </ul> 26 26 <?php 27 } else { 28 ?> 29 <p><?php _e('No incoming links found... yet.'); ?></p> 30 <?php 27 31 } 28 32 break; … … 31 35 $rss = @fetch_rss(apply_filters( 'dashboard_primary_feed', 'http://wordpress.org/development/feed/' )); 32 36 if ( isset($rss->items) && 0 != count($rss->items) ) { 33 ?> 34 <h3><?php echo apply_filters( 'dashboard_primary_title', __('WordPress Development Blog') ); ?></h3> 35 <?php 36 $rss->items = array_slice($rss->items, 0, 3); 37 38 $rss->items = array_slice($rss->items, 0, 2); 37 39 foreach ($rss->items as $item ) { 38 40 ?> 39 <h4><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a> — <?php printf(__('%s ago'), human_time_diff(strtotime($item['pubdate'], time() )) ); ?></h4>41 <h4><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a> <?php gmdate( 'Y/m/d', strtotime( $item['pubdate'] ) ); ?></h4> 40 42 <p><?php echo $item['description']; ?></p> 41 43 <?php
Note: See TracChangeset
for help on using the changeset viewer.