[wp-trac] [WordPress Trac] #48601: Twenty Twenty: document.body is null

WordPress Trac noreply at wordpress.org
Fri Nov 15 12:12:49 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):

 The issue seems limited to touch-enabled devices. It appeared with this
 last-minute patch right before the 5.3 release:
 https://github.com/WordPress/twentytwenty/commit/db82df5cb0293db15911b045471cee3f5f0ac389

 The issue is fixed for me when I remove the excess "()" in line 85 of
 assets/js/index.js in the TwentyTwenty theme. I have attached a patch file
 but it is my very first so it probably needs to be checked by someone who
 knows how the affected polyfill works 🙈

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48601#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list