WordPress.org

Make WordPress Core

Ticket #32093: 32093.diff

File 32093.diff, 569 bytes (added by wonderboymusic, 6 years ago)
  • src/wp-includes/media.php

     
    322322
    323323        $title = $title ? 'title="' . esc_attr( $title ) . '" ' : '';
    324324
    325         $class = 'align' . esc_attr($align) .' size-' . esc_attr($size) . ' wp-image-' . $id;
     325        $class = 'align' . esc_attr($align) .' attachment-' . esc_attr($size) . ' size-' . esc_attr($size) . ' wp-image-' . $id;
    326326
    327327        /**
    328328         * Filter the value of the attachment's image tag class attribute.