Make WordPress Core

Ticket #52010: 52010.patch

File 52010.patch, 2.6 KB (added by engahmeds3ed, 4 years ago)

make url translatable.

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

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php b/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php
    a b  
    186186                $description .= sprintf(
    187187                        // translators: %s is the wordpress.org 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                        __( 'https://wordpress.org/support/article/twenty-twenty-one/#dark-mode-support', 'twentytwentyone' )
    190190                );
    191191                $description .= '</p>';
    192192                $description .= '<p>' . __( 'Dark Mode can also be turned on and off with a button that you can find in the bottom right corner of the page.', 'twentytwentyone' ) . '</p>';
  • src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize-notice-control.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize-notice-control.php b/src/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize-notice-control.php
    a b  
    3939                ?>
    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 esc_html_e( '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>
    4545                </div>