capynet/WPygments

Broken Square Brackets

Opened this issue · 0 comments

Starting with either WordPress 4.2 or 4.3, WordPress core seems to have started escaping square brackets into [ and ], causing them to be rendered improperly in code snippets. Adding $content = str_replace("[", "[", str_replace("]", "]", $content)); to the end of the prepareContent function in wpygments.inc.php fixed this for me.