Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Line Break


_ck_
Participant

@_ck_

Doesn’t your code zap all BRs?

This is not quite what you are trying to do, but maybe you can add BR to this list and see if bbpress will bypass the self-closing requirement.

function bb_allow_extra_tags( $tags ) {
$tags['del'] = array();
$tags['strike'] = array();
$tags['s'] = array();
$tags['b'] = array();
$tags['i'] = array();
$tags['u'] = array();
$tags['bq'] = array();
$tags['blockquote'] = array();
$tags['pre'] = array();
$tags['hr'] = array();
$tags['br'] = array(); // see if this allows non-closed br
$tags['BR'] = array(); // see if this allows uppercase BR
return $tags;
}
add_filter( 'bb_allowed_tags', 'bb_allow_extra_tags' );

As far as uppercase/lowercase that would be tricker if it’s hard coded in the code. You’d have to filter the post text ahead of time, find all tags and convert them to lowercase. Or try adding $tags['BR'] = array(); to the above list and see if that makes a difference.

Personally I’d just add the bbcode plugin if you’ve got people trying to make fancier posts. It’s far more common across all forums.

Skip to toolbar