Changeset 22863 for trunk/wp-admin/includes/image-edit.php
- Timestamp:
- 11/27/2012 02:36:55 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/image-edit.php
r22817 r22863 41 41 42 42 // On some setups GD library does not provide imagerotate() - Ticket #11536 43 if ( function_exists('imagerotate') ) { ?>43 if ( wp_image_editor_supports( array( 'mime_type' => get_post_mime_type( $post_id ), 'methods' => array( 'rotate' ) ) ) ) { ?> 44 44 <div class="imgedit-rleft" onclick="imageEdit.rotate( 90, <?php echo "$post_id, '$nonce'"; ?>, this)" title="<?php esc_attr_e( 'Rotate counter-clockwise' ); ?>"></div> 45 45 <div class="imgedit-rright" onclick="imageEdit.rotate(-90, <?php echo "$post_id, '$nonce'"; ?>, this)" title="<?php esc_attr_e( 'Rotate clockwise' ); ?>"></div> 46 46 <?php } else { 47 $note_ gdlib = esc_attr__('Image rotation is not supported by your web host (function imagerotate() is missing)');47 $note_no_rotate = esc_attr__('Image rotation is not supported by your web host.'); 48 48 ?> 49 <div class="imgedit-rleft disabled" title="<?php echo $note_ gdlib; ?>"></div>50 <div class="imgedit-rright disabled" title="<?php echo $note_ gdlib; ?>"></div>49 <div class="imgedit-rleft disabled" title="<?php echo $note_no_rotate; ?>"></div> 50 <div class="imgedit-rright disabled" title="<?php echo $note_no_rotate; ?>"></div> 51 51 <?php } ?> 52 52
Note: See TracChangeset
for help on using the changeset viewer.