[wp-trac] [WordPress Trac] #64403: wp-auth-check.min.js: TypeError: h is undefined

WordPress Trac noreply at wordpress.org
Thu Dec 11 23:06:27 UTC 2025


#64403: wp-auth-check.min.js: TypeError: h is undefined
-------------------------------+-----------------------------------------
 Reporter:  ArtZ91             |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  javascript, administration
-------------------------------+-----------------------------------------
Changes (by westonruter):

 * keywords:   => reporter-feedback


Comment:

 @ArtZ91 Can you [https://developer.wordpress.org/advanced-
 administration/debug/debug-wordpress/#example-wp-config-php-for-debugging
 enable] `SCRIPT_DEBUG` to verify that?

 If so, then somehow [https://github.com/WordPress/wordpress-
 develop/blob/63b3a8f6c874c8dd7cec0400edf3135ad98f649d/src/js/_enqueues/lib
 /auth-check.js#L156 this line] is failing:

 {{{#!js
 wrap = $( '#wp-auth-check-wrap' );
 }}}

 Does your admin page have an element with a `wp-auth-check-wrap` ID?

 Even if it does, jQuery should be populating `wrap` with an empty jQuery
 object. It shouldn't result in an error. For example:

 {{{#!js
 jQuery('#this-does-not-exist').hasClass('nope');
 }}}

 This returns `false` in the console; it doesn't throw an error.

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


More information about the wp-trac mailing list