Very strange WordPress behavior:
<p> tags are removed when placed inside
<pre> tags, but not always. for example, this works fine:
<pre><p>This is a paragraph</p></pre>
But when the
<p> tag is in its own line, it is removed. for example:
<pre> <p>This is a paragraph</p> </pre>
is printed as:
<pre> This is a paragraph </pre>
The context in which this is happening is inside
I am using WordPress 4.1
It's not a plugin issue, I've tried disabling them all.
It's not a theme problem, I tried other themes.
It's not a filter, I tried removing all filters using
remove_filter and even manually using
unset($GLOBALS['wp_filter'][ 'the_content' ])
What could be causing it?