WordPress.org

Make WordPress Core

Ticket #16795: 16795.patch

File 16795.patch, 789 bytes (added by hakre, 4 years ago)

Trivial to patch

  • wp-includes/media.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk bare
     
    221221        list( $img_src, $width, $height ) = image_downsize($id, $size); 
    222222        $hwstring = image_hwstring($width, $height); 
    223223 
    224         $class = 'align' . esc_attr($align) .' size-' . esc_attr($size) . ' wp-image-' . $id; 
     224        $class = 'wp-image align' . esc_attr($align) .' size-' . esc_attr($size) . ' wp-image-' . $id; 
    225225        $class = apply_filters('get_image_tag_class', $class, $id, $align, $size); 
    226226 
    227227        $html = '<img src="' . esc_attr($img_src) . '" alt="' . esc_attr($alt) . '" title="' . esc_attr($title).'" '.$hwstring.'class="'.$class.'" />';