Making WordPress.org

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#3782 closed defect (bug) (fixed)

Remove unsupported versions from hreflang

Reported by: joostdevalk's profile joostdevalk Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: Priority: normal
Component: International Sites (Rosetta) Keywords: has-patch
Cc:

Description

Our Google Search Console is showing a bunch of errors for hreflang tags that reference unsupported languages. As we're basically _only_ outputting those hreflangs tags for Google, we shouldn't output them if they're not going to help us in there.

Attachments (2)

hreflang-issues.jpg (231.3 KB) - added by joostdevalk 6 years ago.
Image showing the issue in Google Search Console
hreflang.patch (1.5 KB) - added by joostdevalk 6 years ago.
Patch

Download all attachments as: .zip

Change History (6)

@joostdevalk
6 years ago

Image showing the issue in Google Search Console

@joostdevalk
6 years ago

Patch

This ticket was mentioned in Slack in #meta by joostdevalk. View the logs.


6 years ago

#2 @SergeyBiryukov
6 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 7641:

WP.org: Don't output hreflang link attributes for languages Google does not support.

Props joostdevalk.
Fixes #3782.

This ticket was mentioned in Slack in #meta by sergey. View the logs.


5 years ago

Note: See TracTickets for help on using tickets.