[Bb-trac] Re: [bbPress] #683: Auto-Close Markup Tags
bbPress
bb-trac at lists.bbpress.org
Sat Jul 7 18:49:10 GMT 2007
#683: Auto-Close Markup Tags
-------------------------+--------------------------------------------------
Reporter: Trent | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Back-end | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by _ck_):
AHA! I found a bug. Finally I can contribute.
Wordpress does indeed auto-close tags and has a fantastic routine, using
function balancetags.
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 manual 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.
--
Ticket URL: <http://trac.bbpress.org/ticket/683#comment:1>
bbPress <http://bbpress.org/>
Innovative forum development
More information about the Bb-trac
mailing list