Too much text in <pre> tag causes no output
|Reported by:||helenyhou||Owned by:|
Posting this on behalf of Sirisian in IRC who sent the question to wp-hackers on my suggestion and didn't get anywhere.
I was writing an article on my blog with a huge code dump at the end inside of a pre tag. I noticed that this breaks wordpress. This is 100% reproducible by pasting http://pastebin.com/6m3RVGbr into a post then hitting preview (You can use blank pre tags. I just had stuff in them for a syntax highlighter plugin. It doesn't generate a page even with all plugins disabled anyway).
I believe it's caused because there's over 64 KB of data in the pre tags. Talking to someone in the IRC and they said:
looks like there's a preg_replace_callback called clean_pre, probably that's what's failing due to size
basically, probably wpautop()'s fault
Change History (24)
comment:4 in reply to: ↑ 3 @kurtpayne — 4 years ago
- Cc kpayne@… added
- Keywords has-patch added
comment:6 @kurtpayne — 4 years ago
- Keywords needs-unit-tests removed