WordPress.org

Making WordPress.org

Opened 10 months ago

Closed 10 months ago

Last modified 3 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 10 months ago.
Image showing the issue in Google Search Console
hreflang.patch (1.5 KB) - added by joostdevalk 10 months ago.
Patch

Download all attachments as: .zip

Change History (5)

@joostdevalk
10 months ago

Image showing the issue in Google Search Console

@joostdevalk
10 months ago

Patch

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


10 months ago

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

Note: See TracTickets for help on using tickets.