Add before and after hooks to the filter to avoid external filter conflicts
|Reported by:||rmm5t||Owned by:||rmm5t|
Currently, other content filters can adversely manipulate the output of wp-syntax (pretty-quotes, html special chars, etc) depending on the priority ordering of different filters. For example, depending on other filters, XML-type output is broken.
Using the WordPress priority scheme, pull the relevant code out of the content during an early filter pass, and then substitute the syntax highlighted code back in during a late filter pass.
The first pass should probably happen at priority 1 (something guaranteed to run first or very early), and the second pass should probably happen at priority 99 (something guaranteed to run last).
Change History (5)
- Summary changed from Add before and after hooks to the filter to avoid to Add before and after hooks to the filter to avoid external filter conflicts