WordPress.org

Make WordPress Core

Changeset 27766


Ignore:
Timestamp:
03/27/2014 01:13:44 AM (7 years ago)
Author:
azaozz
Message:

Add aria-label to the DFW buttons, props joedolson, fixes #26555

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r27668 r27766  
    956956
    957957            $onclick = ! empty( $args['onclick'] ) ? ' onclick="' . $args['onclick'] . '"' : '';
     958            $title = esc_attr( $args['title'] );
    958959            ?>
    959960
    960961            <div class="mce-widget mce-btn<?php if ( $args['both'] ) { ?> wp-fullscreen-both<?php } ?>">
    961             <button type="button" role="presentation" title="<?php echo $args['title']; ?>"<?php echo $onclick; ?> id="wp_fs_<?php echo $button; ?>">
     962            <button type="button" aria-label="<?php echo $title; ?>" title="<?php echo $title; ?>"<?php echo $onclick; ?> id="wp_fs_<?php echo $button; ?>">
    962963                <i class="mce-ico mce-i-<?php echo $button; ?>"></i>
    963964            </button>
Note: See TracChangeset for help on using the changeset viewer.