WordPress.org

Making WordPress.org

Opened 12 months ago

Closed 12 months ago

Last modified 12 months ago

#2870 closed defect (fixed)

Make the hreflang show only for sites that have translations available

Reported by: joostdevalk Owned by: Otto42
Milestone: Priority: normal
Component: Plugin Directory Keywords:
Cc:

Description

Currently we show hreflang links for each locale, irregardless of whether we actually have a translation for it. This patch fixes that.

Attachments (2)

hreflang.1.patch (4.1 KB) - added by joostdevalk 12 months ago.
Patch for the plugin directory plugin
hreflang.2.patch (2.9 KB) - added by joostdevalk 12 months ago.
Patch that removes the hreflang functions from the theme

Download all attachments as: .zip

Change History (8)

@joostdevalk
12 months ago

Patch for the plugin directory plugin

@joostdevalk
12 months ago

Patch that removes the hreflang functions from the theme

#1 @Otto42
12 months ago

In 5569:

Plugin Directory: Remove hreflang generation from wporg-plugins theme. See #2870

#2 @Otto42
12 months ago

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

In 5570:

Plugin Directory: Move hreflang from the theme into the plugin-directory plugin, change it to only show translated languages instead of all languages, in order to make google behave better. Props @joostdevalk, @otto42. Fixes #2870

#3 @Otto42
12 months ago

In 5571:

Plugin Directory: Fix cache timeout and naming for hreflang memcache. Set to 1 day timeout. Fixes #2870

#4 @ocean90
12 months ago

  • Keywords needs-patch added; has-patch removed
  • Resolution fixed deleted
  • Status changed from closed to reopened

Re-opening since no one added them back to the theme directory yet.

#5 @ocean90
12 months ago

  • Resolution set to fixed
  • Status changed from reopened to closed

Nevermind, misread the commit message.

#6 @Otto42
12 months ago

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