Bug: comment code visible during page refresh
-
I’m hitting a small but visible bug where the editor screen (clicking on a page or post in the WordPress view) briefly shows a stray line of text near the top of the page for a fraction of a second before the block editor renders over it.
This is happening on multiple client sites.
The text is:
//# sourceURL=monsterinsights-gutenberg-editor-js-js-afterIf you view the page source when in the page/post editor it shows this line. AI seems to think this is the issue: MonsterInsights’ inline translation script for the block editor wraps its code in extra
<script>tags, which nests inside the<script>tag WordPress already adds — causing a stray line of text to flash on screen on every edit-screen load (on non-en_US sites).Sites set to English (United States) don’t have the problem, sites with English (Australia) do. I tested switching an Australian site to US English and it stopped happening, switching back, and the issue reappears.
Here is a screenshot: https://drive.google.com/file/d/1eacRVIMqa8FtRTOIv5PrtNo0KtYJkfU_/view?usp=sharing
You must be logged in to reply to this topic.