Skip to content

Commit

Permalink
Merge pull request #221 from WordPress/fix-project-link
Browse files Browse the repository at this point in the history
Fix issue with project link
  • Loading branch information
amieiro authored Apr 18, 2024
2 parents 4baa113 + 3c4c4a6 commit ce141b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions templates/event.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

namespace Wporg\TranslationEvents;

use GP_Locales;
use WP_User;
use Wporg\TranslationEvents\Attendee\Attendee;
use Wporg\TranslationEvents\Attendee\Attendee_Repository;
Expand Down Expand Up @@ -156,9 +157,9 @@
<a href="<?php echo esc_url( gp_url_project( $row->project ) ); ?>"><?php echo esc_html( $project_name ); ?></a> <small> to
<?php
foreach ( explode( ',', $row->locales ) as $_locale ) {
$_locale = \GP_Locales::by_slug( $_locale );
$_locale = GP_Locales::by_slug( $_locale );
?>
<a href="<?php echo esc_url( gp_url_project_locale( $row->project, $_locale, 'default' ) ); ?>"><?php echo esc_html( $_locale->english_name ); ?></a>
<a href="<?php echo esc_url( gp_url_project_locale( $row->project, $_locale->slug, 'default' ) ); ?>"><?php echo esc_html( $_locale->english_name ); ?></a>
<?php
}
// translators: %d: Number of contributors.
Expand Down

0 comments on commit ce141b0

Please sign in to comment.