Changeset 51607
- Timestamp:
- 08/12/2021 07:29:43 PM (4 years ago)
- Location:
- trunk/src/wp-content/themes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentynineteen/inc/template-functions.php
r49183 r51607 97 97 98 98 /** 99 * Add custom sizesattribute to responsive image functionality for post thumbnails.99 * Add custom 'sizes' attribute to responsive image functionality for post thumbnails. 100 100 * 101 101 * @origin Twenty Nineteen 1.0 102 102 * 103 * @param array $attr Attributes for the image markup. 104 * @return string Value for use in post thumbnail 'sizes' attribute. 103 * @param string[] $attr Array of attribute values for the image markup, keyed by attribute name. 104 * See wp_get_attachment_image(). 105 * @return string[] The filtered attributes for the image markup. 105 106 */ 106 107 function twentynineteen_post_thumbnail_sizes_attr( $attr ) { -
trunk/src/wp-content/themes/twentyseventeen/functions.php
r49763 r51607 574 574 * @since Twenty Seventeen 1.0 575 575 * 576 * @param array $attr Attributes for the image markup. 577 * @param int $attachment Image attachment ID. 578 * @param array $size Registered image size or flat array of height and width dimensions. 579 * @return array The filtered attributes for the image markup. 576 * @param string[] $attr Array of attribute values for the image markup, keyed by attribute name. 577 * See wp_get_attachment_image(). 578 * @param WP_Post $attachment Image attachment post. 579 * @param string|int[] $size Requested image size. Can be any registered image size name, or 580 * an array of width and height values in pixels (in that order). 581 * @return string[] The filtered attributes for the image markup. 580 582 */ 581 583 function twentyseventeen_post_thumbnail_sizes_attr( $attr, $attachment, $size ) { -
trunk/src/wp-content/themes/twentysixteen/functions.php
r49763 r51607 560 560 * @since Twenty Sixteen 1.0 561 561 * 562 * @param array $attr Attributes for the image markup. 563 * @param int $attachment Image attachment ID. 564 * @param array $size Registered image size or flat array of height and width dimensions. 565 * @return array The filtered attributes for the image markup. 562 * @param string[] $attr Array of attribute values for the image markup, keyed by attribute name. 563 * See wp_get_attachment_image(). 564 * @param WP_Post $attachment Image attachment post. 565 * @param string|int[] $size Requested image size. Can be any registered image size name, or 566 * an array of width and height values in pixels (in that order). 567 * @return string[] The filtered attributes for the image markup. 566 568 */ 567 569 function twentysixteen_post_thumbnail_sizes_attr( $attr, $attachment, $size ) { -
trunk/src/wp-content/themes/twentytwentyone/inc/template-functions.php
r51304 r51607 433 433 * @since Twenty Twenty-One 1.0 434 434 * 435 * @param array$attr Array of attribute values for the image markup, keyed by attribute name.435 * @param string[] $attr Array of attribute values for the image markup, keyed by attribute name. 436 436 * See wp_get_attachment_image(). 437 437 * @param WP_Post $attachment Image attachment post. 438 * @param string| array $size Requested size. Image size or array of width and height values439 * (in that order). Default 'thumbnail'.440 * @return array438 * @param string|int[] $size Requested image size. Can be any registered image size name, or 439 * an array of width and height values in pixels (in that order). 440 * @return string[] The filtered attributes for the image markup. 441 441 */ 442 442 function twenty_twenty_one_get_attachment_image_attributes( $attr, $attachment, $size ) {
Note: See TracChangeset
for help on using the changeset viewer.