WordPress.org

Make WordPress Core

Changeset 8137


Ignore:
Timestamp:
06/20/2008 04:06:57 PM (12 years ago)
Author:
ryan
Message:

Update blogsearch URL when home changes. Props andy. fixes #7159

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r8097 r8137  
    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') ) ),
Note: See TracChangeset for help on using the changeset viewer.