diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/archive-forum.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/archive-forum.php index 0533435a47..123f97f076 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/archive-forum.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/archive-forum.php @@ -15,9 +15,9 @@

Find out how to get started.', 'wporg-forums' ), - esc_url( site_url( '/welcome/' ) ) + esc_url( wporg_support_get_welcome_url() ) ) ?>

diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/functions.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/functions.php index df6cc5ae45..fee2b82524 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/functions.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/functions.php @@ -1344,6 +1344,19 @@ function wporg_is_single_user_profile( bool $is_single_user_profile ) : bool { } add_filter( 'bbp_is_single_user_profile', 'wporg_is_single_user_profile' ); +/** + * Get the URL for the forums welcome page. + * Slug is translated, so the URL will be correct for the current locale. + * + * @return string + */ +function wporg_support_get_welcome_url() { + return site_url( + /* Translators: slug for the welcome page, e.g. 'welcome' will produce https://wordpress.org/support/welcome/ */ + esc_html__( 'welcome', 'wporg-forums' ) + ); +} + /** bb Base *******************************************************************/ diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/patterns/welcome-cards.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/patterns/welcome-cards.php index a9f2c70fc6..00ae8da10c 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/patterns/welcome-cards.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/patterns/welcome-cards.php @@ -19,7 +19,11 @@ -

' . __( 'Get started', 'wporg-forums' ) . '

+

' . sprintf( + /* Translators: forums welcome page URL */ + __( 'Get started', 'wporg-forums' ), + esc_url( wporg_support_get_welcome_url() ) + ) . '