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

WordPress Trac noreply at wordpress.org
Tue Nov 26 18:41:43 UTC 2019


#48601: Twenty Twenty: document.body is null
------------------------------------------+--------------------------
 Reporter:  quicoto                       |       Owner:  ianbelanger
     Type:  defect (bug)                  |      Status:  closed
 Priority:  normal                        |   Milestone:  5.3.1
Component:  Bundled Theme                 |     Version:  5.3
 Severity:  normal                        |  Resolution:  fixed
 Keywords:  has-patch commit fixed-major  |     Focuses:
------------------------------------------+--------------------------
Changes (by desrosj):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"46787" 46787]:
 {{{
 #!CommitTicketReference repository="" revision="46787"
 Bundled Themes: Fixes JS TypeError in Twenty Twenty.

 On mobile devices using a webkit browser, the menu and search modals could
 not be opened due to a `TypeError: document.body is null`. This commit
 fixes that issue by adding a `touch-enabled` class to the body for
 browsers that do not support media queries.

 Props quicoto, poena, Boga86, acosmin, macmanx, ianbelanger.
 Fixes #48601.
 }}}

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


More information about the wp-trac mailing list