Skip to content

Commit

Permalink
Remove source subdirectory hreflang
Browse files Browse the repository at this point in the history
  • Loading branch information
svaloumas committed Jun 14, 2024
1 parent 24df88a commit dac2e1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/lib/transifex-live-integration-hreflang.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@ public function render_hreflang() {
$hreflangs = $this->generate_languages_hreflang( $source_url_path, $this->languages, $this->language_map, $this->hreflang_map );
$source_hreflang = '';

foreach ($hreflangs as $hreflang) {
foreach ($hreflangs as $index => $hreflang) {
if ($hreflang['is_source']) {
$source_hreflang = $hreflang['hreflang'];
unset($hreflangs[$index]);
break;
}
}
Expand Down

0 comments on commit dac2e1d

Please sign in to comment.