Ticket #2177: wp-dashboard-feeds.diff

File wp-dashboard-feeds.diff, 1.4 kB (added by technosailor, 2 years ago)
  • wp-admin/index-extra.php

    old new  
    2424break; 
    2525 
    2626case 'devnews' : 
    27 $rss = @fetch_rss('http://wordpress.org/development/feed/'); 
     27$rss = @fetch_rss( apply_filters( 'primary_dash_rssurl', 'http://wordpress.org/development/feed/' ) ); 
    2828if ( isset($rss->items) && 0 != count($rss->items) ) { 
    2929?> 
    30 <h3><?php _e('WordPress Development Blog'); ?></h3> 
     30<h3><?php apply_filters('primary_dash_title', __('WordPress Development Blog') ); ?></h3> 
    3131<?php 
    3232$rss->items = array_slice($rss->items, 0, 3); 
    3333foreach ($rss->items as $item ) { 
     
    4343break; 
    4444 
    4545case 'planetnews' : 
    46 $rss = @fetch_rss('http://planet.wordpress.org/feed/'); 
     46$rss = @fetch_rss( apply_filters( 'secondary_dash_rssurl', 'http://planet.wordpress.org/feed/' ) ); 
    4747if ( isset($rss->items) && 0 != count($rss->items) ) { 
    4848?> 
    49 <h3><?php _e('Other WordPress News'); ?></h3> 
     49<h3><?php echo apply_filters( 'secondary_dash_title', __('Other WordPress News') ); ?></h3> 
    5050<ul> 
    5151<?php 
    5252$rss->items = array_slice($rss->items, 0, 20); 
     
    6060        } 
    6161?> 
    6262</ul> 
    63 <p class="readmore"><a href="http://planet.wordpress.org/"><?php _e('Read more'); ?> &raquo;</a></p> 
     63<p class="readmore"><a href="<?php apply_filters( 'secondary_dash_url', 'http://planet.wordpress.org/' ) ?>"><?php _e('Read more'); ?> &raquo;</a></p> 
    6464<?php 
    6565} 
    6666break;