mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-20 19:56:49 +01:00
Accessibility: Remove negative tabindex from the login, install, and setup pages header.
Props bamadesigner, rishishah, jainnidhi. Fixes #42632. Built from https://develop.svn.wordpress.org/trunk@44545 git-svn-id: http://core.svn.wordpress.org/trunk@44376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7481337591
commit
0b5beabd36
|
|
@ -107,10 +107,6 @@ label {
|
|||
display: block;
|
||||
}
|
||||
|
||||
#logo a:focus {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.step {
|
||||
margin: 20px 0 15px;
|
||||
}
|
||||
|
|
|
|||
2
wp-admin/css/install-rtl.min.css
vendored
2
wp-admin/css/install-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -107,10 +107,6 @@ label {
|
|||
display: block;
|
||||
}
|
||||
|
||||
#logo a:focus {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.step {
|
||||
margin: 20px 0 15px;
|
||||
}
|
||||
|
|
|
|||
2
wp-admin/css/install.min.css
vendored
2
wp-admin/css/install.min.css
vendored
File diff suppressed because one or more lines are too long
|
|
@ -77,7 +77,7 @@ function display_header( $body_classes = '' ) {
|
|||
?>
|
||||
</head>
|
||||
<body class="wp-core-ui<?php echo $body_classes; ?>">
|
||||
<p id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></p>
|
||||
<p id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>"><?php _e( 'WordPress' ); ?></a></p>
|
||||
|
||||
<?php
|
||||
} // end display_header()
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ header( 'Content-Type: text/html; charset=utf-8' );
|
|||
?>
|
||||
</head>
|
||||
<body class="wp-core-ui">
|
||||
<p id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></p>
|
||||
<p id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>"><?php _e( 'WordPress' ); ?></a></p>
|
||||
|
||||
<?php
|
||||
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ function setup_config_display_header( $body_classes = array() ) {
|
|||
<?php wp_admin_css( 'install', true ); ?>
|
||||
</head>
|
||||
<body class="<?php echo implode( ' ', $body_classes ); ?>">
|
||||
<p id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></p>
|
||||
<p id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>"><?php _e( 'WordPress' ); ?></a></p>
|
||||
<?php
|
||||
} // end function setup_config_display_header();
|
||||
|
||||
|
|
@ -201,6 +201,8 @@ switch ( $step ) {
|
|||
$GLOBALS['wp_locale'] = new WP_Locale();
|
||||
|
||||
setup_config_display_header();
|
||||
|
||||
$autofocus = wp_is_mobile() ? '' : ' autofocus';
|
||||
?>
|
||||
<h1 class="screen-reader-text"><?php _e( 'Set up your database connection' ); ?></h1>
|
||||
<form method="post" action="setup-config.php?step=2">
|
||||
|
|
@ -208,7 +210,7 @@ switch ( $step ) {
|
|||
<table class="form-table">
|
||||
<tr>
|
||||
<th scope="row"><label for="dbname"><?php _e( 'Database Name' ); ?></label></th>
|
||||
<td><input name="dbname" id="dbname" type="text" size="25" value="wordpress" /></td>
|
||||
<td><input name="dbname" id="dbname" type="text" size="25" value="wordpress"<?php echo $autofocus; ?>/></td>
|
||||
<td><?php _e( 'The name of the database you want to use with WordPress.' ); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) {
|
|||
?>
|
||||
</head>
|
||||
<body class="wp-core-ui">
|
||||
<p id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>" tabindex="-1"><?php _e( 'WordPress' ); ?></a></p>
|
||||
<p id="logo"><a href="<?php echo esc_url( __( 'https://wordpress.org/' ) ); ?>"><?php _e( 'WordPress' ); ?></a></p>
|
||||
|
||||
<?php if ( get_option( 'db_version' ) == $wp_db_version || ! is_blog_installed() ) : ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.1-alpha-44544';
|
||||
$wp_version = '5.1-alpha-44545';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ function login_header( $title = 'Log In', $message = '', $wp_error = null ) {
|
|||
do_action( 'login_header' );
|
||||
?>
|
||||
<div id="login">
|
||||
<h1><a href="<?php echo esc_url( $login_header_url ); ?>" title="<?php echo esc_attr( $login_header_title ); ?>" tabindex="-1"><?php echo $login_header_text; ?></a></h1>
|
||||
<h1><a href="<?php echo esc_url( $login_header_url ); ?>" title="<?php echo esc_attr( $login_header_title ); ?>"><?php echo $login_header_text; ?></a></h1>
|
||||
<?php
|
||||
|
||||
unset( $login_header_url, $login_header_title );
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user