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

WordPress Trac noreply at wordpress.org
Sat Dec 13 10:16:24 UTC 2025


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

Comment (by siliconforks):

 Here's a (somewhat contrived) way to trigger this:

 1. Open the file `wp-includes/js/heartbeat.js` and look for the anonymous
 function with the comment `Start one tick after DOM ready`.

 2. Modify the function so it looks like this:

 {{{
 // Start one tick after DOM ready.
 $( function() {
         settings.lastTick = time();
         scheduleNextTick();

         /*
         Sleep for 2 seconds.  That should be enough for an AJAX round-trip
 to occur.
         */
         let startTime = Date.now();
         while ( Date.now() - startTime < 2000 ) {
                 // do nothing
         }
 });
 }}}

 3. Make sure you have `SCRIPT_DEBUG` set to `true`.

 4. Now in Firefox (I couldn't get this to work in Chrome for some reason)
 log in to the admin section and click "Posts".

 5. In your browser console, you should see the error:

 {{{
 Uncaught TypeError: can't access property "hasClass", wrap is undefined
 }}}

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


More information about the wp-trac mailing list