WordPress.org

Make WordPress Core

Changeset 17305


Ignore:
Timestamp:
01/15/2011 01:12:00 AM (9 years ago)
Author:
nacin
Message:

Add twentyten_attachment_height filter. props lancewillett, fixes #14402.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/loop-attachment.php

    r16480 r17305  
    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_width  = apply_filters( 'twentyten_attachment_size', 900 );
     90                            $attachment_height = apply_filters( 'twentyten_attachment_height', 900 );
     91                            echo wp_get_attachment_image( $post->ID, array( $attachment_width, $attachment_height ) ); // filterable image width with, essentially, no limit for image height.
    9192                        ?></a></p>
    9293
Note: See TracChangeset for help on using the changeset viewer.