[wp-trac] [WordPress Trac] #52773: Twenty Twenty-One Theme - "Can't read property querySelector of null" console error
WordPress Trac
noreply at wordpress.org
Fri Jun 4 17:06:29 UTC 2021
#52773: Twenty Twenty-One Theme - "Can't read property querySelector of null"
console error
---------------------------+---------------------
Reporter: sushmak | Owner: ryelle
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.8
Component: Bundled Theme | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
---------------------------+---------------------
Changes (by ryelle):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"51072" 51072]:
{{{
#!CommitTicketReference repository="" revision="51072"
Twenty Twenty-One: Check for navigation element before using it.
This prevents a javascript error in case the primary navigation has been
removed, for example in a child theme.
Props sushmak.
Fixes #52773.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52773#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list