Make WordPress Core

Ticket #43154: 43154.diff

File 43154.diff, 1.6 KB (added by afercia, 7 years ago)
  • src/js/media/views/modal.js

     
    137137                if ( null !== this.clickedOpenerEl ) {
    138138                        this.clickedOpenerEl.focus();
    139139                } else {
    140                         $( '#wpbody-content' ).focus();
     140                        $( '#wpbody-content' )
     141                                .attr( 'tabindex', '-1' )
     142                                .focus();
    141143                }
    142144
    143145                this.propagate('close');
  • src/wp-admin/admin-header.php

     
    248248
    249249?>
    250250
    251 <div id="wpbody-content" aria-label="<?php esc_attr_e( 'Main content' ); ?>" tabindex="0">
     251<div id="wpbody-content">
    252252<?php
    253253
    254254$current_screen->render_screen_meta();
  • src/wp-includes/class-wp-admin-bar.php

     
    438438                        <?php if ( ! is_admin() ) { ?>
    439439                                <a class="screen-reader-shortcut" href="#wp-toolbar" tabindex="1"><?php _e( 'Skip to toolbar' ); ?></a>
    440440                        <?php } ?>
    441                         <div class="quicklinks" id="wp-toolbar" role="navigation" aria-label="<?php esc_attr_e( 'Toolbar' ); ?>" tabindex="0">
     441                        <div class="quicklinks" id="wp-toolbar" role="navigation" aria-label="<?php esc_attr_e( 'Toolbar' ); ?>">
    442442                                <?php
    443443                                foreach ( $root->children as $group ) {
    444444                                        $this->_render_group( $group );