Make WordPress Core


Ignore:
Timestamp:
12/13/2020 06:38:25 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Twenty Twenty-One: Use a more specific link for Dark Mode instructions.

Make both instances of the link translatable, for consistency.

Props engahmeds3ed, justinahinon.
Fixes #52010.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php

    r49726 r49798  
    185185        $description  = '<p>';
    186186        $description .= sprintf(
    187             // translators: %s is the wordpress.org Twenty Twenty-One support article URL.
     187            /* translators: %s: Twenty Twenty-One support article URL. */
    188188            __( 'Dark Mode is a device setting. If a visitor to your site requests it, your site will be shown with a dark background and light text. <a href="%s">Learn more about Dark Mode.</a>', 'twentytwentyone' ),
    189             __( 'https://wordpress.org/support/article/twenty-twenty-one/', 'twentytwentyone' )
     189            esc_url( __( 'https://wordpress.org/support/article/twenty-twenty-one/#dark-mode-support', 'twentytwentyone' ) )
    190190        );
    191191        $description .= '</p>';
Note: See TracChangeset for help on using the changeset viewer.