WordPress.org

Make WordPress Core

Ticket #16795: wp-image.php

File wp-image.php, 148 bytes (added by hakre, 4 years ago)

Plugin Variant - Works as MU-Plugin as well

Line 
1<?php
2# Plugin Name: wp-image class
3
4$class = 'wp-image';
5
6add_filter('get_image_tag_class', function($c)use($class){return rtrim($class.' '.$c);});