Make WordPress Core


Ignore:
Timestamp:
01/10/2019 05:20:59 PM (6 years ago)
Author:
afercia
Message:

Accessibility: Remove negative tabindex from the login, install, and setup pages header.

Props bamadesigner, rishishah, jainnidhi.
Fixes #42632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/setup-config.php

    r43650 r44545  
    114114</head>
    115115<body class="<?php echo implode( ' ', $body_classes ); ?>">
    116 <p id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></p>
     116<p id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>"><?php _e( 'WordPress' ); ?></a></p>
    117117    <?php
    118118} // end function setup_config_display_header();
     
    202202
    203203        setup_config_display_header();
     204
     205        $autofocus = wp_is_mobile() ? '' : ' autofocus';
    204206        ?>
    205207<h1 class="screen-reader-text"><?php _e( 'Set up your database connection' ); ?></h1>
     
    209211        <tr>
    210212            <th scope="row"><label for="dbname"><?php _e( 'Database Name' ); ?></label></th>
    211             <td><input name="dbname" id="dbname" type="text" size="25" value="wordpress" /></td>
     213            <td><input name="dbname" id="dbname" type="text" size="25" value="wordpress"<?php echo $autofocus; ?>/></td>
    212214            <td><?php _e( 'The name of the database you want to use with WordPress.' ); ?></td>
    213215        </tr>
Note: See TracChangeset for help on using the changeset viewer.