WordPress.org

Make WordPress Core

Ticket #14402: gallery-image-height.diff

File gallery-image-height.diff, 766 bytes (added by iandstewart, 4 years ago)
  • attachment.php

     
    8484?> 
    8585                                                <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php 
    8686                                                        $attachment_size = apply_filters( 'twentyten_attachment_size', 900 ); 
    87                                                         echo wp_get_attachment_image( $post->ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height. 
     87                                                        echo wp_get_attachment_image( $post->ID, array( $attachment_size, $attachment_size ) ); // filterable image width and height. 
    8888                                                ?></a></p> 
    8989 
    9090                                                <div id="nav-below" class="navigation">