Make WordPress Core


Ignore:
Timestamp:
03/25/2025 10:15:10 AM (20 months ago)
Author:
audrasjb
Message:

Twenty Eleven: Improve documentation for twentyeleven_attachment_size filter.

Follow-up to [25625].

Props sabernhardt.
Fixes #63160.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/image.php

    r56549 r60077  
    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                                                                                ?>
Note: See TracChangeset for help on using the changeset viewer.