Public feed #526995

Unnamed

public php v1 · immutable
Raw Edit
·published 2007-06-01 02:43 UTC
rendered paste body
<?php/*Plugin Name: Image FramesPlugin URI: http://wordpress.org/#Author: rob1nAuthor URI: http://wordpress.org/#Version: 1.0Description: Wraps <code>&ltimg&gt;</code> tags in <code>&lt;div class=&quot;imageframe&quot;&gt;</code>.*/function image_frames_zomg( $content ) {	return preg_replace( '|<img(.*)>|i', '<div class="imageframe"><img$1></div>', $content );}add_filter( 'the_content', 'image_frames_zomg', 1, 1 );?>