[wp-trac] [WordPress Trac] #48601: Twenty Twenty: document.body is null
WordPress Trac
noreply at wordpress.org
Sat Nov 16 10:34:36 UTC 2019
#48601: Twenty Twenty: document.body is null
---------------------------+---------------------
Reporter: quicoto | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.3.1
Component: Bundled Theme | Version: 5.3
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
---------------------------+---------------------
Comment (by Boga86):
Thanks for clearing this up, @acosmin. I probably should have read about
how iife work before suggesting a patch that just stopped the function
from executing 😮
Your solution works as expected. The overlays are shown and the error
message is gone.
I tested it by wrapping the code in an init function and executing it when
the DOM is ready. The code is not pretty but I will attach the patch file
just in case someone else finds it useful.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48601#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list