Make WordPress Core

Ticket #43803: 43803.diff

File 43803.diff, 6.7 KB (added by chetan200891, 8 years ago)

Created inital patch to change text from "window" to "tab".

  • src/wp-admin/includes/dashboard.php

    diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php
    index 7a268ab..1f7632d 100644
    a b function wp_dashboard_events_news() { 
    11271127                                'https://make.wordpress.org/community/meetups-landing-page',
    11281128                                __( 'Meetups' ),
    11291129                                /* translators: accessibility text */
    1130                                 __( '(opens in a new window)' )
     1130                                __( '(opens in a new tab)' )
    11311131                        );
    11321132                ?>
    11331133
    function wp_dashboard_events_news() { 
    11391139                                'https://central.wordcamp.org/schedule/',
    11401140                                __( 'WordCamps' ),
    11411141                                /* translators: accessibility text */
    1142                                 __( '(opens in a new window)' )
     1142                                __( '(opens in a new tab)' )
    11431143                        );
    11441144                ?>
    11451145
    function wp_dashboard_events_news() { 
    11521152                                esc_url( _x( 'https://wordpress.org/news/', 'Events and News dashboard widget' ) ),
    11531153                                __( 'News' ),
    11541154                                /* translators: accessibility text */
    1155                                 __( '(opens in a new window)' )
     1155                                __( '(opens in a new tab)' )
    11561156                        );
    11571157                ?>
    11581158        </p>
  • src/wp-admin/includes/meta-boxes.php

    diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php
    index f9e4701..a8d39ec 100644
    a b $preview_button = sprintf( 
    6565        '%1$s<span class="screen-reader-text"> %2$s</span>',
    6666        $preview_button_text,
    6767        /* translators: accessibility text */
    68         __( '(opens in a new window)' )
     68        __( '(opens in a new tab)' )
    6969);
    7070?>
    7171<a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview-<?php echo (int) $post->ID; ?>" id="post-preview"><?php echo $preview_button; ?></a>
  • src/wp-admin/includes/plugin-install.php

    diff --git a/src/wp-admin/includes/plugin-install.php b/src/wp-admin/includes/plugin-install.php
    index 445412d..9b1052b 100644
    a b if ( ! empty( $api->ratings ) && array_sum( (array) $api->ratings ) > 0 ) { 
    698698                                /* translators: 1: number of stars (used to determine singular/plural), 2: number of reviews */
    699699                                $aria_label = esc_attr(
    700700                                        sprintf(
    701                                                 _n( 'Reviews with %1$d star: %2$s. Opens in a new window.', 'Reviews with %1$d stars: %2$s. Opens in a new window.', $key ),
     701                                                _n( 'Reviews with %1$d star: %2$s. Opens in a new tab.', 'Reviews with %1$d stars: %2$s. Opens in a new tab.', $key ),
    702702                                                $key,
    703703                                                number_format_i18n( $ratecount )
    704704                                        )
  • src/wp-includes/class-wp-customize-manager.php

    diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php
    index db21cb3..6da71a1 100644
    a b final class WP_Customize_Manager { 
    42444244                                <label for="{{ elementPrefix }}customize-preview-link-input" class="screen-reader-text"><?php esc_html_e( 'Preview Link' ); ?></label>
    42454245                                <a href="" target="">
    42464246                                        <span class="preview-control-element" data-component="url"></span>
    4247                                         <span class="screen-reader-text"><?php _e( '(opens in a new window)' ); ?></span>
     4247                                        <span class="screen-reader-text"><?php _e( '(opens in a new tab)' ); ?></span>
    42484248                                </a>
    42494249                                <input id="{{ elementPrefix }}customize-preview-link-input" readonly tabindex="-1" class="preview-control-element" data-component="input">
    42504250                                <button class="customize-copy-preview-link preview-control-element button button-secondary" data-component="button" data-copy-text="<?php esc_attr_e( 'Copy' ); ?>" data-copied-text="<?php esc_attr_e( 'Copied' ); ?>" ><?php esc_html_e( 'Copy' ); ?></button>
    final class WP_Customize_Manager { 
    54635463                        esc_url( __( 'https://codex.wordpress.org/CSS' ) ),
    54645464                        __( 'Learn more about CSS' ),
    54655465                        /* translators: accessibility text */
    5466                         __( '(opens in a new window)' )
     5466                        __( '(opens in a new tab)' )
    54675467                );
    54685468                $section_description .= '</p>';
    54695469
    final class WP_Customize_Manager { 
    54845484                                sprintf(
    54855485                                        '<span class="screen-reader-text"> %s</span>',
    54865486                                        /* translators: accessibility text */
    5487                                         __( '(opens in a new window)' )
     5487                                        __( '(opens in a new tab)' )
    54885488                                )
    54895489                        );
    54905490                        $section_description .= '</p>';
  • src/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php

    diff --git a/src/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php b/src/wp-includes/customize/class-wp-customize-nav-menu-locations-control.php
    index 2fda036..f6474f6 100644
    a b class WP_Customize_Nav_Menu_Locations_Control extends WP_Customize_Control { 
    5454                                                                        sprintf(
    5555                                                                                '<span class="screen-reader-text"> %s</span>',
    5656                                                                                /* translators: accessibility text */
    57                                                                                 __( '(opens in a new window)' )
     57                                                                                __( '(opens in a new tab)' )
    5858                                                                        )
    5959                                                                );
    6060                                                                ?>
  • src/wp-includes/deprecated.php

    diff --git a/src/wp-includes/deprecated.php b/src/wp-includes/deprecated.php
    index 89203d7..826f41c 100644
    a b function comments_popup_script() { 
    37453745}
    37463746
    37473747/**
    3748  * Adds element attributes to open links in new windows.
     3748 * Adds element attributes to open links in new tabs.
    37493749 *
    37503750 * @since 0.71
    37513751 * @deprecated 4.5.0
    37523752 *
    3753  * @param string $text Content to replace links to open in a new window.
     3753 * @param string $text Content to replace links to open in a new tab.
    37543754 * @return string Content that has filtered links.
    37553755 */
    37563756function popuplinks( $text ) {
  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index 6f9e77c..134d780 100644
    a b function wp_auth_check_html() { 
    56305630        <div class="wp-auth-fallback">
    56315631                <p><b class="wp-auth-fallback-expired" tabindex="0"><?php _e( 'Session expired' ); ?></b></p>
    56325632                <p><a href="<?php echo esc_url( $login_url ); ?>" target="_blank"><?php _e( 'Please log in again.' ); ?></a>
    5633                 <?php _e( 'The login page will open in a new window. After logging in you can close it and return to this page.' ); ?></p>
     5633                <?php _e( 'The login page will open in a new tab. After logging in you can close it and return to this page.' ); ?></p>
    56345634        </div>
    56355635        </div>
    56365636        </div>
  • src/wp-includes/widgets/class-wp-widget-custom-html.php

    diff --git a/src/wp-includes/widgets/class-wp-widget-custom-html.php b/src/wp-includes/widgets/class-wp-widget-custom-html.php
    index 068d6f7..9da1791 100644
    a b class WP_Widget_Custom_HTML extends WP_Widget { 
    306306                                sprintf(
    307307                                        '<span class="screen-reader-text"> %s</span>',
    308308                                        /* translators: accessibility text */
    309                                         __( '(opens in a new window)' )
     309                                        __( '(opens in a new tab)' )
    310310                                )
    311311                        );
    312312                        $content .= '</p>';