Changeset 53707
- Timestamp:
- 07/15/2022 11:38:46 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-login.php
r53458 r53707 262 262 * @param string $messages Login messages. 263 263 */ 264 echo '<p class="message" >' . apply_filters( 'login_messages', $messages ) . "</p>\n";264 echo '<p class="message" id="login-message">' . apply_filters( 'login_messages', $messages ) . "</p>\n"; 265 265 } 266 266 } … … 1389 1389 $rememberme = ! empty( $_POST['rememberme'] ); 1390 1390 1391 if ( $errors->has_errors() ) { 1392 $aria_describedby_error = ' aria-describedby="login_error"'; 1393 } else { 1394 $aria_describedby_error = ''; 1391 $aria_describedby = ''; 1392 $has_errors = $errors->has_errors(); 1393 1394 if ( $has_errors ) { 1395 $aria_describedby = ' aria-describedby="login_error"'; 1396 } 1397 1398 if ( $has_errors && 'message' === $errors->get_error_data() ) { 1399 $aria_describedby = ' aria-describedby="login-message"'; 1395 1400 } 1396 1401 … … 1401 1406 <p> 1402 1407 <label for="user_login"><?php _e( 'Username or Email Address' ); ?></label> 1403 <input type="text" name="log" id="user_login"<?php echo $aria_describedby _error; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" autocomplete="username" />1408 <input type="text" name="log" id="user_login"<?php echo $aria_describedby; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" autocomplete="username" /> 1404 1409 </p> 1405 1410 … … 1407 1412 <label for="user_pass"><?php _e( 'Password' ); ?></label> 1408 1413 <div class="wp-pwd"> 1409 <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby _error; ?> class="input password-input" value="" size="20" autocomplete="current-password" />1414 <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby; ?> class="input password-input" value="" size="20" autocomplete="current-password" /> 1410 1415 <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Show password' ); ?>"> 1411 1416 <span class="dashicons dashicons-visibility" aria-hidden="true"></span>
Note: See TracChangeset
for help on using the changeset viewer.