Skip to content

Commit fece657

Browse files
committed
Fix up and normalize pw_weak/pw-weak IDs and labels.
props johnjamesjacoby fixes #33077 git-svn-id: https://develop.svn.wordpress.org/trunk@33363 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d1a1e77 commit fece657

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/wp-admin/install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function display_setup_form( $error = null ) {
164164
<th scope="row"><?php _e( 'Confirm Password' ); ?></th>
165165
<td>
166166
<label>
167-
<input type="checkbox" name="pw_weak" class="pw-checkbox" />
167+
<input type="checkbox" name="pw_weak" class="pw-checkbox" id="pw-weak" />
168168
<?php _e( 'Confirm use of weak password' ); ?>
169169
</label>
170170
</td>

src/wp-admin/user-edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ function use_ssl_preference($user) {
483483
<tr class="pw-weak">
484484
<th><?php _e( 'Confirm Password' ); ?></th>
485485
<td>
486-
<label for="pw_weak">
486+
<label>
487487
<input type="checkbox" name="pw_weak" class="pw-checkbox" id="pw-weak" />
488488
<?php _e( 'Confirm use of weak password' ); ?>
489489
</label>

src/wp-admin/user-new.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@ function admin_created_user_email( $text ) {
421421
<tr class="pw-weak">
422422
<th><?php _e( 'Confirm Password' ); ?></th>
423423
<td>
424-
<label for="pw-weak">
425-
<input type="checkbox" name="pw-weak" class="pw-checkbox" id="pw-weak" />
424+
<label>
425+
<input type="checkbox" name="pw_weak" class="pw-checkbox" id="pw-weak" />
426426
<?php _e( 'Confirm use of weak password' ); ?>
427427
</label>
428428
</td>

0 commit comments

Comments
 (0)