[wp-trac] [WordPress Trac] #52483: Site Health breaks when heartbeat deregistered

WordPress Trac noreply at wordpress.org
Wed Feb 10 04:31:37 UTC 2021


#52483: Site Health breaks when heartbeat deregistered
--------------------------+-----------------------------
 Reporter:  gmariani405   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Site Health   |    Version:  5.6.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 ''Site Health'' fails to complete if a plugin de-registers the
 {{{heartbeat}}} script which ''Site Health'' relies on to include {{{wp-
 hooks}}}. This occurs if you use a plugin to manage when heartbeat runs
 and how often.

 I'd suggest listing {{{wp-hooks}}} as a dependency for ''Site Health''
 instead of relying on {{{heartbeat}}} to include it.

 This is the error generated on the ''Site Health'' page when
 {{{heartbeat}}} is de-registered:
 {{{
 11:36:24.820 TypeError: wp.hooks is undefined site-health.min.js:2:3983
     t https://example.com/wp-admin/js/site-health.min.js:2
     jQuery 4
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52483>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list