Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: bbpress doesn’t auto-close tags?


_ck_
Participant

@_ck_

AHA!

I found a bug. Finally I can contribute.

WordPress does indeed auto-close tags and has a fantastic routine, the balancetags I mentioned above.

HOWEVER

it was copied raw into BBpress and it won’t work by default because it’s looking for an option that will never be set because BBpress doesn’t have it

function balanceTags($text, $is_comment = 0, $force = false) {

if ( !$force && get_option(‘use_balanceTags’) == 0 )

return $text;

See what I mean? There’s no manually way to set use_balanceTags in BBpress.

So how do we force the filter on? I know it has to be balanceTags ($text,1,1) to work.

Skip to toolbar