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. Built from https://develop.svn.wordpress.org/trunk@36223 git-svn-id: http://core.svn.wordpress.org/trunk@36190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -2701,7 +2701,7 @@ function edit_form_image_editor( $post ) {
|
||||
$alt_text = get_post_meta( $post->ID, '_wp_attachment_image_alt', true );
|
||||
|
||||
$att_url = wp_get_attachment_url( $post->ID ); ?>
|
||||
<div class="wp_attachment_holder">
|
||||
<div class="wp_attachment_holder wp-clearfix">
|
||||
<?php
|
||||
if ( wp_attachment_is_image( $post->ID ) ) :
|
||||
$image_edit_button = '';
|
||||
@@ -2713,7 +2713,7 @@ function edit_form_image_editor( $post ) {
|
||||
|
||||
<div class="imgedit-response" id="imgedit-response-<?php echo $attachment_id; ?>"></div>
|
||||
|
||||
<div<?php if ( $open ) echo ' style="display:none"'; ?> class="wp_attachment_image" id="media-head-<?php echo $attachment_id; ?>">
|
||||
<div<?php if ( $open ) echo ' style="display:none"'; ?> class="wp_attachment_image wp-clearfix" id="media-head-<?php echo $attachment_id; ?>">
|
||||
<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>
|
||||
<p><?php echo $image_edit_button; ?></p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user