Skip to content

Commit ec9b97b

Browse files
committed
Twenty Eleven: Improve documentation for twentyeleven_attachment_size filter.
Follow-up to [25625]. Props sabernhardt. Fixes #63160. git-svn-id: https://develop.svn.wordpress.org/trunk@60077 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2bf5a23 commit ec9b97b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/wp-content/themes/twentyeleven/image.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,15 @@
9393
<a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment">
9494
<?php
9595
/**
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.
9799
*
98100
* @since Twenty Eleven 1.0
99101
*
100-
* @param int The height and width attachment size dimensions in pixels. Default 848.
102+
* @param int The width for the image attachment size in pixels. Default 848.
101103
*/
102104
$attachment_size = apply_filters( 'twentyeleven_attachment_size', 848 );
103-
// Filterable image width with 1024px limit for image height.
104105
echo wp_get_attachment_image( $post->ID, array( $attachment_size, 1024 ) );
105106
?>
106107
</a>

0 commit comments

Comments
 (0)