mirror of
git://develop.git.wordpress.org/
synced 2025-03-15 09:29:48 +01:00
Media: Set default state for image rotation button.
Adds `aria-expanded="false"` as default state for image rotation toggle in admin image editor. See #50523. Props joedolson. Fixes #58800. git-svn-id: https://develop.svn.wordpress.org/trunk@56228 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
de6f51823a
commit
f4d2a1593f
@ -62,7 +62,7 @@ function wp_image_editor( $post_id, $msg = false ) {
|
||||
<button type="button" onclick="imageEdit.toggleCropTool( <?php echo "$post_id, '$nonce'"; ?>, this );" aria-expanded="false" aria-controls="imgedit-crop" class="imgedit-crop button disabled" disabled><?php esc_html_e( 'Crop' ); ?></button>
|
||||
<button type="button" class="imgedit-scale button" onclick="imageEdit.toggleControls(this);" aria-expanded="false" aria-controls="imgedit-scale"><?php esc_html_e( 'Scale' ); ?></button>
|
||||
<div class="imgedit-rotate-menu-container">
|
||||
<button type="button" aria-controls="imgedit-rotate-menu" class="imgedit-rotate button" onclick="imageEdit.togglePopup(this)"><?php esc_html_e( 'Image Rotation' ); ?></button>
|
||||
<button type="button" aria-controls="imgedit-rotate-menu" class="imgedit-rotate button" aria-expanded="false" onclick="imageEdit.togglePopup(this)"><?php esc_html_e( 'Image Rotation' ); ?></button>
|
||||
<div id="imgedit-rotate-menu" class="imgedit-popup-menu">
|
||||
<?php
|
||||
// On some setups GD library does not provide imagerotate() - Ticket #11536.
|
||||
|
Loading…
x
Reference in New Issue
Block a user