[wp-trac] [WordPress Trac] #47606: Display Site Health score on Dashboard

WordPress Trac noreply at wordpress.org
Fri Feb 7 09:50:26 UTC 2020


#47606: Display Site Health score on Dashboard
------------------------------------+-----------------------
 Reporter:  guddu1315               |       Owner:  Clorith
     Type:  feature request         |      Status:  assigned
 Priority:  high                    |   Milestone:  5.4
Component:  Site Health             |     Version:  5.2.2
 Severity:  blocker                 |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  ui
------------------------------------+-----------------------

Comment (by xkon):

 I believe that we can move the `prepare_sql_data()` inside the
 `get_test_sql_server()` to move it out of the constructor as in
 [attachment:"47606.3.diff"] .

 As far as I've seen only the `sql_server` & `utf8mb4_support` tests needs
 this with the sql_server running first both should be fine. I didn't find
 any other test needing this at the moment but can't be entirely sure so
 I'll ping @Clorith here for a check :-).

 With this move, the constant calls from every page are also "fixed" as
 tests would only run under Site Health page.

 The class still runs everywhere due to wp-settings.php but only the
 scheduled_event check would run that is still within the constructor.

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


More information about the wp-trac mailing list