patch wptexturize to leave text inside (code|pre|kbd|style|script|samp) tags alone
|Reported by:||n8v||Owned by:||anonymous|
My issue was initially similar to ticket #2647 but I fixed it a different way (see patch) because I wasn't sharp enough to spot the missing parenthese.
Also, I noticed that it didn't seem to properly skip texturizing text inside tags nested within code/pre/etc. blocks. So for example, even after applying Justinsomnia's patch from #2647 :
<pre> foo --bar <samp>bar --foo</samp> baz --foo </pre>
gets texturized as:
<pre> foo --bar <samp>bar –foo</samp> baz –foo </pre>
I tested my patch with the sample above, and confirmed that it resumes texturizing after the closing pre tag.
Change History (12)
- Milestone changed from 2.9 to 2.6.1
- Resolution set to fixed
- Status changed from new to closed