Make WordPress Core

Opened 18 months ago

Last modified 4 months ago

#59355 new defect (bug)

TypeError: Cannot read properties of undefined (reading 'hasClass') in wp-auth-check.min.js

Reported by: chamois_blanc's profile chamois_blanc Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.3.1
Component: Login and Registration Keywords: reporter-feedback
Focuses: javascript Cc:

Description

Here is the trace:

at
HTMLDocument.<anonymous>(.../wp-includes/js/wp-auth-check.min.js:2:655)
at
HTMLDocument.dispatch(.../wp-admin/load-scripts.php:2:39997)
at
v.handle(.../wp-admin/load-scripts.php:2:37968)
at
Object.trigger(.../wp-admin/load-scripts.php:2:70063)
at
HTMLDocument.<anonymous>(.../wp-admin/load-scripts.php:2:70665)
at
Function.each(.../wp-admin/load-scripts.php:2:3129)
at
e.<computed>.each(.../wp-admin/load-scripts.php:2:1594)
at
e.<computed>.trigger(.../wp-admin/load-scripts.php:2:70640)
at
Object.<anonymous>(https://wednesdaynighthop.com/wp-includes/js/heartbeat.min.js:2:2186)
at
c(.../wp-admin/load-scripts.php:2:25266)

Change History (2)

#1 @chamois_blanc
18 months ago

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?

#2 @johnbillion
4 months ago

  • Component changed from Security to Login and Registration
  • Keywords reporter-feedback added

@chamois_blanc Sorry that nobody got back to you on this. Can you provide some further information please? Is it still an issue? Where exactly did the problem occur? Is it reproducible with no plugins active and one of the default themes in use?

Cheers!

Note: See TracTickets for help on using tickets.