Shortcode parsed incorrectly because of heredoc
A workaround might be: [code] $foo = <<<EOT …. EOT; [/code] where we change <<< to <<<. We could do this automatically before do_shortcode filters the content and then replace it again afterwards. I tested this version: [code] $foo = <<<EOT …. EOT;<!—-> [/code] and it seems to parse the shortocde’s content correctly. But then … Read more