[wp-trac] [WordPress Trac] #59355: TypeError: Cannot read properties of undefined (reading 'hasClass') in wp-auth-check.min.js
WordPress Trac
noreply at wordpress.org
Fri Sep 15 04:03:37 UTC 2023
#59355: TypeError: Cannot read properties of undefined (reading 'hasClass') in wp-
auth-check.min.js
---------------------------+------------------------------
Reporter: chamois_blanc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Security | Version: 6.3.1
Severity: normal | Resolution:
Keywords: | Focuses: javascript
---------------------------+------------------------------
Comment (by chamois_blanc):
It's probably here:
{{{
if ( ! data['wp-auth-check'] && wrap.hasClass(
'hidden' ) && ! tempHidden ) {
show();
} else if ( data['wp-auth-check'] && !
wrap.hasClass( 'hidden' ) ) {
hide();
}
}}}
maybe use `wrap?.hasClass()` instead?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59355#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list