Administration: Change all the occurrences of "(opens in a new window)" to "(opens in a new tab)".

Props chetan200891, ianbelanger, afercia.
Fixes #43803.
Built from https://develop.svn.wordpress.org/trunk@43174


git-svn-id: http://core.svn.wordpress.org/trunk@43003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2018-05-05 09:45:22 +00:00
parent daacd57fd4
commit cd4c960a6c
9 changed files with 14 additions and 14 deletions

View File

@ -1127,7 +1127,7 @@ function wp_dashboard_events_news() {
'https://make.wordpress.org/community/meetups-landing-page', 'https://make.wordpress.org/community/meetups-landing-page',
__( 'Meetups' ), __( 'Meetups' ),
/* translators: accessibility text */ /* translators: accessibility text */
__( '(opens in a new window)' ) __( '(opens in a new tab)' )
); );
?> ?>
@ -1139,7 +1139,7 @@ function wp_dashboard_events_news() {
'https://central.wordcamp.org/schedule/', 'https://central.wordcamp.org/schedule/',
__( 'WordCamps' ), __( 'WordCamps' ),
/* translators: accessibility text */ /* translators: accessibility text */
__( '(opens in a new window)' ) __( '(opens in a new tab)' )
); );
?> ?>
@ -1152,7 +1152,7 @@ function wp_dashboard_events_news() {
esc_url( _x( 'https://wordpress.org/news/', 'Events and News dashboard widget' ) ), esc_url( _x( 'https://wordpress.org/news/', 'Events and News dashboard widget' ) ),
__( 'News' ), __( 'News' ),
/* translators: accessibility text */ /* translators: accessibility text */
__( '(opens in a new window)' ) __( '(opens in a new tab)' )
); );
?> ?>
</p> </p>

View File

@ -65,7 +65,7 @@ $preview_button = sprintf(
'%1$s<span class="screen-reader-text"> %2$s</span>', '%1$s<span class="screen-reader-text"> %2$s</span>',
$preview_button_text, $preview_button_text,
/* translators: accessibility text */ /* translators: accessibility text */
__( '(opens in a new window)' ) __( '(opens in a new tab)' )
); );
?> ?>
<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> <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>

View File

@ -706,7 +706,7 @@ if ( ! empty( $api->ratings ) && array_sum( (array) $api->ratings ) > 0 ) {
/* translators: 1: number of stars (used to determine singular/plural), 2: number of reviews */ /* translators: 1: number of stars (used to determine singular/plural), 2: number of reviews */
$aria_label = esc_attr( $aria_label = esc_attr(
sprintf( sprintf(
_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 ), _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 ),
$key, $key,
number_format_i18n( $ratecount ) number_format_i18n( $ratecount )
) )

View File

@ -4244,7 +4244,7 @@ final class WP_Customize_Manager {
<label for="{{ elementPrefix }}customize-preview-link-input" class="screen-reader-text"><?php esc_html_e( 'Preview Link' ); ?></label> <label for="{{ elementPrefix }}customize-preview-link-input" class="screen-reader-text"><?php esc_html_e( 'Preview Link' ); ?></label>
<a href="" target=""> <a href="" target="">
<span class="preview-control-element" data-component="url"></span> <span class="preview-control-element" data-component="url"></span>
<span class="screen-reader-text"><?php _e( '(opens in a new window)' ); ?></span> <span class="screen-reader-text"><?php _e( '(opens in a new tab)' ); ?></span>
</a> </a>
<input id="{{ elementPrefix }}customize-preview-link-input" readonly tabindex="-1" class="preview-control-element" data-component="input"> <input id="{{ elementPrefix }}customize-preview-link-input" readonly tabindex="-1" class="preview-control-element" data-component="input">
<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> <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>
@ -5463,7 +5463,7 @@ final class WP_Customize_Manager {
esc_url( __( 'https://codex.wordpress.org/CSS' ) ), esc_url( __( 'https://codex.wordpress.org/CSS' ) ),
__( 'Learn more about CSS' ), __( 'Learn more about CSS' ),
/* translators: accessibility text */ /* translators: accessibility text */
__( '(opens in a new window)' ) __( '(opens in a new tab)' )
); );
$section_description .= '</p>'; $section_description .= '</p>';
@ -5484,7 +5484,7 @@ final class WP_Customize_Manager {
sprintf( sprintf(
'<span class="screen-reader-text"> %s</span>', '<span class="screen-reader-text"> %s</span>',
/* translators: accessibility text */ /* translators: accessibility text */
__( '(opens in a new window)' ) __( '(opens in a new tab)' )
) )
); );
$section_description .= '</p>'; $section_description .= '</p>';

View File

@ -54,7 +54,7 @@ class WP_Customize_Nav_Menu_Locations_Control extends WP_Customize_Control {
sprintf( sprintf(
'<span class="screen-reader-text"> %s</span>', '<span class="screen-reader-text"> %s</span>',
/* translators: accessibility text */ /* translators: accessibility text */
__( '(opens in a new window)' ) __( '(opens in a new tab)' )
) )
); );
?> ?>

View File

@ -3745,12 +3745,12 @@ function comments_popup_script() {
} }
/** /**
* Adds element attributes to open links in new windows. * Adds element attributes to open links in new tabs.
* *
* @since 0.71 * @since 0.71
* @deprecated 4.5.0 * @deprecated 4.5.0
* *
* @param string $text Content to replace links to open in a new window. * @param string $text Content to replace links to open in a new tab.
* @return string Content that has filtered links. * @return string Content that has filtered links.
*/ */
function popuplinks( $text ) { function popuplinks( $text ) {

View File

@ -5632,7 +5632,7 @@ function wp_auth_check_html() {
<div class="wp-auth-fallback"> <div class="wp-auth-fallback">
<p><b class="wp-auth-fallback-expired" tabindex="0"><?php _e( 'Session expired' ); ?></b></p> <p><b class="wp-auth-fallback-expired" tabindex="0"><?php _e( 'Session expired' ); ?></b></p>
<p><a href="<?php echo esc_url( $login_url ); ?>" target="_blank"><?php _e( 'Please log in again.' ); ?></a> <p><a href="<?php echo esc_url( $login_url ); ?>" target="_blank"><?php _e( 'Please log in again.' ); ?></a>
<?php _e( 'The login page will open in a new window. After logging in you can close it and return to this page.' ); ?></p> <?php _e( 'The login page will open in a new tab. After logging in you can close it and return to this page.' ); ?></p>
</div> </div>
</div> </div>
</div> </div>

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.0-alpha-43172'; $wp_version = '5.0-alpha-43174';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -306,7 +306,7 @@ class WP_Widget_Custom_HTML extends WP_Widget {
sprintf( sprintf(
'<span class="screen-reader-text"> %s</span>', '<span class="screen-reader-text"> %s</span>',
/* translators: accessibility text */ /* translators: accessibility text */
__( '(opens in a new window)' ) __( '(opens in a new tab)' )
) )
); );
$content .= '</p>'; $content .= '</p>';