Bug Unexpected hinted bb_code_rules code event listener triggered without a hint

There is a bug in this version
X

Xon

Guest
If you create a code event listener for bb_code_rules, and give it a context hint; then the following will trigger it to be called when it is not expected:
Code:

{{ bb_code('test', null, null) }}

Additionally the documentation should be updated to be explicit it is about nullable strings, ie:
XML:

Code:
<em>\XF\BbCode\RuleSet</em> $ruleSet - The ruleset object being created.
<em>?string</em> $context - A string representing the context of the rule set, usually representing the content...

Read more

Continue reading...