WordPress.org

Make WordPress Core

Ticket #7159: blogsearch.diff

File blogsearch.diff, 1.0 KB (added by andy, 13 years ago)
  • wp-admin/includes/dashboard.php

     
    3636        );
    3737
    3838        // Incoming Links Widget
    39         if ( !isset( $widget_options['dashboard_incoming_links'] ) ) {
     39        if ( !isset( $widget_options['dashboard_incoming_links'] ) || !isset( $widget_options['dashboard_incoming_links']['home'] ) || $widget_options['dashboard_incoming_links']['home'] != get_option('home') ) {
    4040                $update = true;
    4141                $widget_options['dashboard_incoming_links'] = array(
     42                        'home' => get_option('home'),
    4243                        'link' => apply_filters( 'dashboard_incoming_links_link', 'http://blogsearch.google.com/blogsearch?hl=en&scoring=d&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) ),
    4344                        'url' => 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') ) ),
    4445                        'items' => 5,