WordPress.org
News
Showcase
Hosting
Extend
Themes
Plugins
Patterns
Blocks
Openverse
↗
︎
Learn
Learn WordPress
Documentation
Forums
Developers
WordPress.tv
↗
︎
Community
Make WordPress
Photo Directory
Five for the Future
Events
Job Board
↗
︎
About
About WordPress
Enterprise
Gutenberg
↗
︎
Get WordPress
Search Trac
Get WordPress
Make WordPress Core
Blog
Handbook
Tickets
Components
Browse Source
Trac Timeline
Create a New Ticket
Search:
Login
Notifications
Context Navigation
Back to Ticket #16795
Ticket #16795
: wp-image.php
File wp-image.php,
148 bytes
(added by
hakre
,
14 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
6
add_filter
(
'get_image_tag_class'
,
function
(
$c
)
use
(
$class
){
return
rtrim
(
$class
.
' '
.
$c
);});
Trac UI Preferences
Download in other formats:
Original Format