Make WordPress Core

Changeset 49819 for branches/5.6


Ignore:
Timestamp:
12/17/2020 12:57:46 PM (6 years ago)
Author:
desrosj
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.
Merges [49798] to the 5.6 branch.
Fixes #52010.

Location:
branches/5.6
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/5.6

  • branches/5.6/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize-notice-control.php

    r49633 r49819  
    4040                <div class="notice notice-warning">
    4141                        <p><?php esc_html_e( 'To access the Dark Mode settings, select a light background color.', 'twentytwentyone' ); ?></p>
    42                         <p><a href="https://wordpress.org/support/article/twenty-twenty-one/">
     42                        <p><a href="<?php echo esc_url( __( 'https://wordpress.org/support/article/twenty-twenty-one/#dark-mode-support', 'twentytwentyone' ) ); ?>">
    4343                                <?php esc_html_e( 'Learn more about Dark Mode.', 'twentytwentyone' ); ?>
    4444                        </a></p>
  • branches/5.6/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php

    r49728 r49819  
    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.