Make WordPress Core

Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#21225 closed defect (bug) (invalid)

Dashboard Incoming Links - Google blogsearch fails when get_option( 'home') is not a TLD

Reported by: c3mdigital's profile c3mdigital Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5
Component: Feeds Keywords:
Focuses: Cc:

Description

When WordPress gets installed and the first time a user visits the dashboard the dashboard_widget_options get set for dashboard_incoming_links. The Google blogsearch link gets set based on your settings for wp_home. If your developing on a local machine most likely wp_home is not a true TLD.

Google blogsearch incorrectly returns incoming links when the site: url is not a true TLD. For example I'll use an install where wp_home is set to http://wp.patch. The link that gets formed is:

http://blogsearch.google.com/blogsearch_feeds?scoring=d&ie=utf-8&num=10&output=rss&partner=wordpress&q=link:http://wp.patch/

If you visit that link you will notice that results are getting returned just using the "patch" keyword.

If the sited gets moved to live production you will continue to get the incorrect incoming links unless the dashboard_widget_options get manually changed or deleted.

Also to note is that the Google blogsearch API has been deprecated: https://developers.google.com/blog-search/

My suggestion is to remove the widget or hide it by default in screen options like we did for some of the stuff in post.php.

Another option is to do a check and return WP_Error if wp_home is not a TLD before setting the dashboard widget options.

Change History (5)

#1 @SergeyBiryukov
11 years ago

Related/duplicate: #20379

#2 @c3mdigital
10 years ago

  • Keywords needs-patch added; dev-feedback removed
  • Severity changed from minor to normal

#3 @kitchin
10 years ago

This ticket can be closed, 3.8 no longer has dashboard_incoming_links. See #26604.

#4 @kitchin
10 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#5 @SergeyBiryukov
10 years ago

  • Keywords needs-patch removed
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.