Update blogsearch URL when home changes. Props andy. fixes #7159
git-svn-id: https://develop.svn.wordpress.org/trunk@8137 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b17b7f8bf0
commit
a9e662bf1c
|
@ -36,9 +36,10 @@ function wp_dashboard_setup() {
|
||||||
);
|
);
|
||||||
|
|
||||||
// Incoming Links Widget
|
// Incoming Links Widget
|
||||||
if ( !isset( $widget_options['dashboard_incoming_links'] ) ) {
|
if ( !isset( $widget_options['dashboard_incoming_links'] ) || !isset( $widget_options['dashboard_incoming_links']['home'] ) || $widget_options['dashboard_incoming_links']['home'] != get_option('home') ) {
|
||||||
$update = true;
|
$update = true;
|
||||||
$widget_options['dashboard_incoming_links'] = array(
|
$widget_options['dashboard_incoming_links'] = array(
|
||||||
|
'home' => get_option('home'),
|
||||||
'link' => apply_filters( 'dashboard_incoming_links_link', 'http://blogsearch.google.com/blogsearch?hl=en&scoring=d&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) ),
|
'link' => apply_filters( 'dashboard_incoming_links_link', 'http://blogsearch.google.com/blogsearch?hl=en&scoring=d&partner=wordpress&q=link:' . trailingslashit( get_option('home') ) ),
|
||||||
'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') ) ),
|
'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') ) ),
|
||||||
'items' => 5,
|
'items' => 5,
|
||||||
|
|
Loading…
Reference in New Issue