WordPress.org

Make WordPress Core

Changeset 34629


Ignore:
Timestamp:
09/27/2015 05:54:01 PM (6 years ago)
Author:
wonderboymusic
Message:

Add size-$size class to <img> in wp_get_attachment_image().

Fixes #32093.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r34566 r34629  
    768768        $default_attr = array(
    769769            'src'   => $src,
    770             'class' => "attachment-$size_class",
     770            'class' => "attachment-$size_class size-$size",
    771771            'alt'   => trim(strip_tags( get_post_meta($attachment_id, '_wp_attachment_image_alt', true) )), // Use Alt field first
    772772        );
Note: See TracChangeset for help on using the changeset viewer.