Making WordPress.org

Changeset 11461


Ignore:
Timestamp:
01/20/2022 10:36:29 PM (2 years ago)
Author:
coffee2code
Message:

Photo Directory: Add 'width' and 'height' attributes to grid images.

Props jonoaldersonwp.
Fixes #5986.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-photos/template-parts/photo-grid.php

    r11459 r11461  
    2121        <a href="<?php echo get_post_permalink(); ?>">
    2222            <?php printf(
    23                 '<img class="grid-photo" src="%s" srcset="%s" alt="%s" loading="lazy" decoding="async">',
     23                '<img class="grid-photo" src="%s" srcset="%s" height="200" width="300" alt="%s" loading="lazy" decoding="async">',
    2424                esc_url( get_the_post_thumbnail_url( get_the_ID(), 'medium' ) ),
    2525                esc_attr(
Note: See TracChangeset for help on using the changeset viewer.