WordPress.org

Make WordPress Core

Changeset 5346


Ignore:
Timestamp:
04/29/07 22:37:37 (8 years ago)
Author:
rob1n
Message:

Filter dashboard URL's. fixes #2177

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/index-extra.php

    r4871 r5346  
    88 
    99case 'incominglinks' : 
    10 $rss = @fetch_rss('http://feeds.technorati.com/cosmos/rss/?url='. trailingslashit(get_option('home')) .'&partner=wordpress'); 
     10$rss = @fetch_rss(apply_filters( 'dashboard_incoming_links_feed', 'http://feeds.technorati.com/cosmos/rss/?url='. trailingslashit(get_option('home')) .'&partner=wordpress' )); 
    1111if ( isset($rss->items) && 1 < count($rss->items) ) { // Technorati returns a 1-item feed when it has no results 
    1212?> 
    13 <h3><?php _e('Incoming Links'); ?> <cite><a href="http://www.technorati.com/search/<?php echo trailingslashit(get_option('home')); ?>?partner=wordpress"><?php _e('More &raquo;'); ?></a></cite></h3> 
     13<h3><?php _e('Incoming Links'); ?> <cite><a href="<?php echo apply_filters( 'dashboard_incoming_links_link', 'http://www.technorati.com/search/<?php echo trailingslashit(get_option('home')); ?>?partner=wordpress' ); ?>"><?php _e('More &raquo;'); ?></a></cite></h3> 
    1414<ul> 
    1515<?php 
     
    2525 
    2626case 'devnews' : 
    27 $rss = @fetch_rss('http://wordpress.org/development/feed/'); 
     27$rss = @fetch_rss(apply_filters( 'dashboard_primary_feed', '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 echo apply_filters( 'dashboard_primary_title', __('WordPress Development Blog') ); ?></h3> 
    3131<?php 
    3232$rss->items = array_slice($rss->items, 0, 3); 
     
    4444 
    4545case 'planetnews' : 
    46 $rss = @fetch_rss('http://planet.wordpress.org/feed/'); 
     46$rss = @fetch_rss(apply_filters( 'dashboard_secondary_feed', '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( 'dashboard_secondary_title', __('Other WordPress News') ); ?></h3> 
    5050<ul> 
    5151<?php 
     
    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 echo apply_filters( 'dashboard_secondary_link', 'http://planet.wordpress.org/' ); ?>"><?php _e('Read more'); ?> &raquo;</a></p> 
    6464<?php 
    6565} 
Note: See TracChangeset for help on using the changeset viewer.