Home > Blog > Allowing Post Images

February 24th, 2007

Allowing Post Images

Allowing Post Images

With the new release of version 0.8 of BBPress, or Desmond as it has been dubbed, Michaels plugin to allow images in posts no longer seems to work.

So I took a look at the “formatting_functions.php” file located in the “/bb-includes” folder and found what needs to be changed. Where it says;


function bb_allowed_tags() {
$tags = array(
'a' => array(
'href' => array(),
'title' => array(),
'rel' => array()),
'blockquote' => array('cite' => array()),
'br' => array(),
'code' => array(),
'pre' => array(),
'em' => array(),
'strong' => array(),
'ul' => array(),
'ol' => array(),
'li' => array()
);
return apply_filters( 'bb_allowed_tags', $tags );

You will need to add;


'img' => array(
'alt' => array()),

Between the ‘em’ and ’strong’ array values.

Comments are closed.