mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Update blogsearch URL when home changes. Props andy. fixes #7159
git-svn-id: http://svn.automattic.com/wordpress/trunk@8137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f22abd7533
commit
9d418f4cf2
@ -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
Block a user