Skip to content

Commit 8225ac3

Browse files
authored
Merge branch 'WordPress:trunk' into trunk
2 parents 9721a82 + dbae27c commit 8225ac3

5 files changed

Lines changed: 20 additions & 15 deletions

File tree

src/wp-admin/css/common.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ code {
664664

665665
/* Dashicon for language options on General Settings and Profile screens */
666666
.form-table th label[for="locale"] .dashicons,
667+
.form-table th label[for="site-language"] .dashicons,
667668
.form-table th label[for="WPLANG"] .dashicons {
668669
margin-left: 5px;
669670
}

src/wp-admin/css/login.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,11 +446,18 @@ input::-ms-reveal {
446446
text-align: center;
447447
}
448448

449+
.language-switcher form {
450+
display: inline-block;
451+
}
452+
449453
.language-switcher label {
450-
margin-right: 0.25em;
454+
display: block;
455+
margin-bottom: 0.5em;
456+
text-align: left;
451457
}
452458

453459
.language-switcher label .dashicons {
460+
margin-left: 0.5em;
454461
width: auto;
455462
height: auto;
456463
}

src/wp-admin/network/site-new.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
if ( ! empty( $languages ) || ! empty( $translations ) ) :
249249
?>
250250
<tr class="form-field form-required">
251-
<th scope="row"><label for="site-language"><?php _e( 'Site Language' ); ?></label></th>
251+
<th scope="row"><label for="site-language"><?php _e( 'Site Language' ); ?><span class="dashicons dashicons-translation" aria-hidden="true"></span></label></th>
252252
<td>
253253
<?php
254254
// Network default.

src/wp-login.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -377,13 +377,7 @@ function login_footer( $input_id = '' ) {
377377
<form id="language-switcher" method="get">
378378

379379
<label for="language-switcher-locales">
380-
<span class="dashicons dashicons-translation" aria-hidden="true"></span>
381-
<span class="screen-reader-text">
382-
<?php
383-
/* translators: Hidden accessibility text. */
384-
_e( 'Language' );
385-
?>
386-
</span>
380+
<?php _e( 'Language' ); ?><span class="dashicons dashicons-translation" aria-hidden="true"></span>
387381
</label>
388382

389383
<?php

src/wp-signup.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ function wpmu_signup_stylesheet() {
7878
.mu_register input[type="email"],
7979
.mu_register #user_name { direction: ltr; }
8080
.mu_register #site-language { display: block; }
81+
.mu_register label[for="site-language"] { display: inline-flex; align-items: center; }
82+
.mu_register label[for="site-language"] .dashicons { margin-left: 0.5em; }
8183
.mu_register .prefix_address,
8284
.mu_register .suffix_address { font-size: 18px; display: inline-block; direction: ltr; }
8385
.mu_register label,
@@ -91,6 +93,7 @@ function wpmu_signup_stylesheet() {
9193
.mu_register .signup-options .wp-signup-radio-button { display: block; }
9294
.mu_register .privacy-intro .wp-signup-radio-button { margin-right: 0.5em; }
9395
.rtl .mu_register .wp-signup-blogname { direction: ltr; text-align: right; }
96+
.rtl .mu_register label[for="site-language"] .dashicons { margin-right: 0.5em; margin-left: 0; }
9497
</style>
9598
<?php
9699
}
@@ -125,9 +128,9 @@ function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) {
125128
$current_network = get_network();
126129
// Site name.
127130
if ( ! is_subdomain_install() ) {
128-
echo '<label for="blogname">' . __( 'Site Name (subdirectory only):' ) . '</label>';
131+
echo '<label for="blogname">' . __( 'Site Name (subdirectory only)' ) . '</label>';
129132
} else {
130-
echo '<label for="blogname">' . __( 'Site Domain (subdomain only):' ) . '</label>';
133+
echo '<label for="blogname">' . __( 'Site Domain (subdomain only)' ) . '</label>';
131134
}
132135

133136
$errmsg_blogname = $errors->get_error_message( 'blogname' );
@@ -161,7 +164,7 @@ function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) {
161164

162165
// Site Title.
163166
?>
164-
<label for="blog_title"><?php _e( 'Site Title:' ); ?></label>
167+
<label for="blog_title"><?php _e( 'Site Title' ); ?></label>
165168
<?php
166169
$errmsg_blog_title = $errors->get_error_message( 'blog_title' );
167170
$errmsg_blog_title_aria = '';
@@ -179,7 +182,7 @@ function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) {
179182
if ( ! empty( $languages ) ) :
180183
?>
181184
<p>
182-
<label for="site-language"><?php _e( 'Site Language:' ); ?></label>
185+
<label for="site-language"><?php _e( 'Site Language' ); ?><span class="dashicons dashicons-translation" aria-hidden="true"></span></label>
183186
<?php
184187
// Network default.
185188
$lang = get_site_option( 'WPLANG' );
@@ -278,7 +281,7 @@ function show_user_form( $user_name = '', $user_email = '', $errors = '' ) {
278281
}
279282

280283
// Username.
281-
echo '<label for="user_name">' . __( 'Username:' ) . '</label>';
284+
echo '<label for="user_name">' . __( 'Username' ) . '</label>';
282285
$errmsg_username = $errors->get_error_message( 'user_name' );
283286
$errmsg_username_aria = '';
284287
if ( $errmsg_username ) {
@@ -291,7 +294,7 @@ function show_user_form( $user_name = '', $user_email = '', $errors = '' ) {
291294

292295
<?php
293296
// Email address.
294-
echo '<label for="user_email">' . __( 'Email&nbsp;Address:' ) . '</label>';
297+
echo '<label for="user_email">' . __( 'Email&nbsp;Address' ) . '</label>';
295298
$errmsg_email = $errors->get_error_message( 'user_email' );
296299
$errmsg_email_aria = '';
297300
if ( $errmsg_email ) {

0 commit comments

Comments
 (0)