WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/08/2016 07:12:11 PM (6 years ago)
Author:
afercia
Message:

Media: make the Image Editor usable with a keyboard.

For accessibility, all interactive controls must be operable from the keyboard.
Replaces <div>s used as UI controls with buttons. Groups some logically-related
form elements.

Fixes #28864.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r35918 r36223  
    27022702
    27032703    $att_url = wp_get_attachment_url( $post->ID ); ?>
    2704     <div class="wp_attachment_holder">
     2704    <div class="wp_attachment_holder wp-clearfix">
    27052705    <?php
    27062706    if ( wp_attachment_is_image( $post->ID ) ) :
     
    27142714        <div class="imgedit-response" id="imgedit-response-<?php echo $attachment_id; ?>"></div>
    27152715
    2716         <div<?php if ( $open ) echo ' style="display:none"'; ?> class="wp_attachment_image" id="media-head-<?php echo $attachment_id; ?>">
     2716        <div<?php if ( $open ) echo ' style="display:none"'; ?> class="wp_attachment_image wp-clearfix" id="media-head-<?php echo $attachment_id; ?>">
    27172717            <p id="thumbnail-head-<?php echo $attachment_id; ?>"><img class="thumbnail" src="<?php echo set_url_scheme( $thumb_url[0] ); ?>" style="max-width:100%" alt="" /></p>
    27182718            <p><?php echo $image_edit_button; ?></p>
Note: See TracChangeset for help on using the changeset viewer.