Make WordPress Core

Opened 3 years ago

Closed 2 years ago

Last modified 2 years ago

#21225 closed defect (bug) (invalid)

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

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


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:


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
3 years ago

Related/duplicate: #20379

#2 @c3mdigital
2 years ago

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

#3 @kitchin
2 years ago

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

#4 @kitchin
2 years ago

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

#5 @SergeyBiryukov
2 years ago

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