Ticket #30180: 30180.patch
File 30180.patch, 632 bytes (added by , 10 years ago) |
---|
-
wp-includes/media.php
668 668 $src_file = $icon_dir . '/' . wp_basename($src); 669 669 @list($width, $height) = getimagesize($src_file); 670 670 } 671 672 $image_meta = wp_get_attachment_metadata( $attachment_id ); 673 $image_alt = get_post_meta( $attachment_id, '_wp_attachment_image_alt', true ); 674 671 675 if ( $src && $width && $height ) 672 return array( $src, $width, $height );676 return array( $src, $width, $height, $image_alt, $image_meta ); 673 677 return false; 674 678 } 675 679