WordPress.org

Make WordPress Core

Ticket #14402: 14402.refreshed.diff

File 14402.refreshed.diff, 1003 bytes (added by lancewillett, 3 years ago)
  • wp-content/themes/twentyten/loop-attachment.php

     
    8686        } 
    8787?> 
    8888                                                <p class="attachment"><a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php 
    89                                                         $attachment_size = apply_filters( 'twentyten_attachment_size', 900 ); 
    90                                                         echo wp_get_attachment_image( $post->ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height. 
     89                                                        $attachment_size = apply_filters( 'twentyten_attachment_size', array( 'width' => 900, 'height' => 900 ) ); 
     90                                                        echo wp_get_attachment_image( $post->ID, array( $attachment_size['width'], $attachment_size['height'] ) ); // filterable image width and height. 
    9191                                                ?></a></p> 
    9292 
    9393                                                <div id="nav-below" class="navigation">