This function had been marked as deprecated since 2.5.0. Use wp_get_attachment_image()

Retrieve HTML content of image element.

Signature

get_attachment_innerHTML( $id = 0, $fullsize = false, $max_dims = false )
id
 (int) Optional. Post ID.
Default: 0
fullsize
 (boolean) Optional, default to false. Whether to have full size image.
Default: false
max_dims
 (array) Optional. Dimensions of image.
Default: false

Return

(string)

Source

function get_attachment_innerHTML($id = 0, $fullsize = false, $max_dims = false) {
	_deprecated_function( __FUNCTION__, '2.5', 'wp_get_attachment_image()' );
	$id = (int) $id;
	if ( !$post = get_post($id) )
		return false;

	if ( $innerHTML = get_attachment_icon($post->ID, $fullsize, $max_dims))
		return $innerHTML;

	$innerHTML = esc_attr($post->post_title);

	return apply_filters('attachment_innerHTML', $innerHTML, $post->ID);
}
WP Trac GitHub

Link here