Index: wp-admin/includes/image-edit.php
===================================================================
--- wp-admin/includes/image-edit.php	(revision 12527)
+++ wp-admin/includes/image-edit.php	(working copy)
@@ -39,13 +39,18 @@
 	<div class="imgedit-menu">
 		<div onclick="imageEdit.crop(<?php echo "$post_id, '$nonce'"; ?>, this)" class="imgedit-crop disabled" title="<?php esc_attr_e( 'Crop' ); ?>"></div><?php
 
-	if ( function_exists('imagerotate') ) { ?>
+       // On some PHP installs the GD library doesn't supply imagerotate() because 
+       // the library is not the PHP version, but the official libray, which lacks
+       // this function. See ticket #11536 in trac.
+       if (function_exists('imagerotate') ) : ?>
+		<div onclick="imageEdit.rotate(90, <?php echo "$post_id, '$nonce'"; ?>, this)" class="imgedit-rleft" title="<?php esc_attr_e( 'Rotate couter-clockwise' ); ?>"></div>
+		<div onclick="imageEdit.rotate(-90, <?php echo "$post_id, '$nonce'"; ?>, this)" class="imgedit-rright" title="<?php esc_attr_e( 'Rotate clockwise' ); ?>"></div>
+<?php else : ?>
+	    <div class="imgedit-rleft disabled" title="<?php esc_attr_e('Image rotation is not supported on your webhost'); ?>"></div>
+	    <div class="imgedit-rright disabled" title="<?php esc_attr_e('Image rotation is not supported on your webhost'); ?>"></div>
+<?php endif; ?>
 
-		<div onclick="imageEdit.rotate(90, <?php echo "$post_id, '$nonce'"; ?>, this)" class="imgedit-rleft" title="<?php esc_attr_e( 'Rotate counter-clockwise' ); ?>"></div>
-		<div onclick="imageEdit.rotate(-90, <?php echo "$post_id, '$nonce'"; ?>, this)" class="imgedit-rright" title="<?php esc_attr_e( 'Rotate clockwise' ); ?>"></div><?php
 
-	} ?>
-
 		<div onclick="imageEdit.flip(1, <?php echo "$post_id, '$nonce'"; ?>, this)" class="imgedit-flipv" title="<?php esc_attr_e( 'Flip vertically' ); ?>"></div>
 		<div onclick="imageEdit.flip(2, <?php echo "$post_id, '$nonce'"; ?>, this)" class="imgedit-fliph" title="<?php esc_attr_e( 'Flip horizontally' ); ?>"></div>
 
