Skip to content

Commit

Permalink
Merge pull request #275 from transifex/TX-15429_remove_source_subdire…
Browse files Browse the repository at this point in the history
…ctory_hreflang

Remove source subdirectory hreflang
  • Loading branch information
svaloumas authored Jun 14, 2024
2 parents 24df88a + dac2e1d commit 7aa5da5
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 7aa5da5

Please sign in to comment.