[wp-trac] [WordPress Trac] #16795: Add `wp-image` to images in posts

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 11 04:58:57 UTC 2011


#16795: Add `wp-image` to images in posts
-------------------------+----------------------
 Reporter:  cyberskull   |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Media        |     Version:
 Severity:  trivial      |  Resolution:  wontfix
 Keywords:               |
-------------------------+----------------------
Changes (by scribu):

 * milestone:  Awaiting Review =>


Comment:

 I agree that the filter is enough in this case.

 PHP < 5.3 compatible version:

 {{{
 function add_wp_image_class( $class ) {
   return $class . ' wp-image';
 }
 add_filter('get_image_tag_class', 'add_wp_image_class');
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16795#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list