Don't remove empty BBC until after [nobbc] parsing - BBCode inside [nobbc][/nobbc] should always be treated as plain text, so we shouldn't trim it out. Moving the regex to delete empty BBC after the [nobbc] parsing fixes this nicely. - Also breaks up `?>` string that is embedded in the regex. We wouldn't want someone to, say, comment out the line and then contact support in a panic trying to figure out why their forum now just shows the white screen of death.
Don't remove empty BBC until after [nobbc] parsing
- BBCode inside [nobbc][/nobbc] should always be treated as plain text, so we shouldn't trim it out. Moving the regex to delete empty BBC after the [nobbc] parsing fixes this nicely.
- Also breaks up `?>` string that is embedded in the regex. We wouldn't want someone to, say, comment out the line and then contact support in a panic trying to figure out why their forum now just shows the white screen of death.

Signed-off-by: Jon Stovell <5fe09b7d9f00fd95250ae2a73993b352b084988d@gmail.com>

StealthWombat/SMF2.1-more-forkery,StealthWombat/SMF2.1-more-forkery