Changeset 60077
- Timestamp:
- 03/25/2025 10:15:10 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/image.php
r56549 r60077 94 94 <?php 95 95 /** 96 * Filters the Twenty Eleven default attachment size. 96 * Filters the width for Twenty Eleven's default attachment size. 97 * 98 * This edits the image width, and the image height is limited to 1024 pixels. 97 99 * 98 100 * @since Twenty Eleven 1.0 99 101 * 100 * @param int The height and width attachment size dimensionsin pixels. Default 848.102 * @param int The width for the image attachment size in pixels. Default 848. 101 103 */ 102 104 $attachment_size = apply_filters( 'twentyeleven_attachment_size', 848 ); 103 // Filterable image width with 1024px limit for image height.104 105 echo wp_get_attachment_image( $post->ID, array( $attachment_size, 1024 ) ); 105 106 ?>
Note: See TracChangeset
for help on using the changeset viewer.