WordPress.org

Make WordPress Core

Ticket #4577: 4577-google-trunk.diff

File 4577-google-trunk.diff, 1.4 KB (added by Otto42, 7 years ago)

Patch for trunk to use Google instead of Technorati for Incoming Links display

  • wp-admin/index-extra.php

     
    77switch ( $_GET['jax'] ) { 
    88 
    99case 'incominglinks' : 
    10 $rss = @fetch_rss(apply_filters( 'dashboard_incoming_links_feed', 'http://feeds.technorati.com/cosmos/rss/?url='. trailingslashit(get_option('home')) .'&partner=wordpress' )); 
     10$rss = @fetch_rss(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')) )); 
    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="<?php echo apply_filters( 'dashboard_incoming_links_link', 'http://www.technorati.com/search/'. 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://blogsearch.google.com/blogsearch?hl=en&scoring=d&partner=wordpress&q=link:'.trailingslashit(get_option('home')) ); ?>"><?php _e('More &raquo;'); ?></a></cite></h3> 
    1414<ul> 
    1515<?php 
    1616$rss->items = array_slice($rss->items, 0, 10);