Changeset 45616
- Timestamp:
- 07/09/2019 09:04:41 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image-edit.php
r45615 r45616 191 191 <div class="imgedit-menu wp-clearfix"> 192 192 <button type="button" onclick="imageEdit.handleCropToolClick( <?php echo "$post_id, '$nonce'"; ?>, this )" class="imgedit-crop button disabled" disabled><span class="screen-reader-text"><?php esc_html_e( 'Crop' ); ?></span></button> 193 194 195 196 197 198 199 200 201 202 203 204 205 <button type="button" class="imgedit-rright button" onclick="imageEdit.rotate(-90, <?php echo "$post_id, '$nonce'"; ?>, this)"><span class="screen-reader-text"><?php esc_html_e( 'Rotate clockwise' ); ?></span></button>206 207 208 209 210 211 212 193 <?php 194 195 // On some setups GD library does not provide imagerotate() - Ticket #11536 196 if ( wp_image_editor_supports( 197 array( 198 'mime_type' => get_post_mime_type( $post_id ), 199 'methods' => array( 'rotate' ), 200 ) 201 ) ) { 202 $note_no_rotate = ''; 203 ?> 204 <button type="button" class="imgedit-rleft button" onclick="imageEdit.rotate( 90, <?php echo "$post_id, '$nonce'"; ?>, this)"><span class="screen-reader-text"><?php esc_html_e( 'Rotate counter-clockwise' ); ?></span></button> 205 <button type="button" class="imgedit-rright button" onclick="imageEdit.rotate(-90, <?php echo "$post_id, '$nonce'"; ?>, this)"><span class="screen-reader-text"><?php esc_html_e( 'Rotate clockwise' ); ?></span></button> 206 <?php 207 } else { 208 $note_no_rotate = '<p class="note-no-rotate"><em>' . __( 'Image rotation is not supported by your web host.' ) . '</em></p>'; 209 ?> 210 <button type="button" class="imgedit-rleft button disabled" disabled></button> 211 <button type="button" class="imgedit-rright button disabled" disabled></button> 212 <?php } ?> 213 213 214 214 <button type="button" onclick="imageEdit.flip(1, <?php echo "$post_id, '$nonce'"; ?>, this)" class="imgedit-flipv button"><span class="screen-reader-text"><?php esc_html_e( 'Flip vertically' ); ?></span></button>
Note: See TracChangeset
for help on using the changeset viewer.