Skip to content

Commit

Permalink
TX-13207: Add hreflang x-default tag
Browse files Browse the repository at this point in the history
  • Loading branch information
svaloumas committed Jun 6, 2024
1 parent c328163 commit 14d6be8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/lib/transifex-live-integration-hreflang.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ public function render_hreflang() {
<link rel="alternate" href="$href_attr" hreflang="$hreflang_attr"/>\n
HREFLANG;
}
$hreflang_out .= <<<XDEFAULT
<link rel="alternate" href="$source_url" hreflang="x-default"/>\n
XDEFAULT;
echo $hreflang_out;
return true;
}
Expand Down

0 comments on commit 14d6be8

Please sign in to comment.