Making WordPress.org

Changeset 14176

Timestamp:
11/13/2024 08:28:08 PM (21 hours ago)
Author:
adamwood
Message:

Support 2024: Fix welcome page URL i18n

Translate the whole URL rather than only the slug, to avoid confusion.

See #7821

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/functions.php

    r14174 r14176  
    13481348/**
    13491349 * Get the URL for the forums welcome page.
    1350  * Slug is translated, so the URL will be correct for the current locale.
     1350 * locale.
    13511351 *
    13521352 * @return string
    13531353 */
    13541354function wporg_support_get_welcome_url() {
    1355     return site_url(
    1356         /* Translators: slug for the welcome page, e.g. 'welcome' will produce https://wordpress.org/support/welcome/ */
    1357         esc_html__( 'welcome', 'wporg-forums' )
    1358     );
     1355    /* Translators: URL for the welcome page. Check whether your site has a custom slug, eg. https://es.wordpress.org/support/bienvenida/ */
     1356    return __( 'https://wordpress.org/support/welcome/', 'wporg-forums' );
    13591357}
    13601358
Note: See TracChangeset for help on using the changeset viewer.