WordPress.org

Making WordPress.org

Opened 2 years ago

Closed 2 years ago

Last modified 11 months ago

#3782 closed defect (fixed)

Remove unsupported versions from hreflang

Reported by: joostdevalk Owned by: 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 2 years ago.
Image showing the issue in Google Search Console
hreflang.patch (1.5 KB) - added by joostdevalk 2 years ago.
Patch

Download all attachments as: .zip

Change History (6)

@joostdevalk
2 years ago

Image showing the issue in Google Search Console

@joostdevalk
2 years ago

Patch

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


2 years ago

#2 @SergeyBiryukov
2 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.


11 months ago

Note: See TracTickets for help on using tickets.