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

WordPress Trac noreply at wordpress.org
Mon Jan 20 16:16:53 UTC 2020


#47606: Display Site Health score on Dashboard
-----------------------------+-----------------------
 Reporter:  guddu1315        |       Owner:  Clorith
     Type:  feature request  |      Status:  assigned
 Priority:  normal           |   Milestone:  5.4
Component:  Site Health      |     Version:  5.2.2
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:  ui
-----------------------------+-----------------------
Changes (by afercia):

 * keywords:  has-patch => needs-patch


Comment:

 @SergeyBiryukov 👋 When you have a chance: seems to me that after [47063]
 all tests run twice. Both the WP built-in tests and the ones added by
 plugins.

 To my understanding, [47063]  introduced an `initialize` method that
 returns or creates an instance of the class. When it's called in `wp-
 settings.php` it initializes the class.

 Since the class is initialized in `wp-settings.php`, the class
 `__construct()` runs on any admin page and calls the method within it e.g.
 `maybe_create_scheduled_event`, `prepare_sql_data` run on all admin pages.

 More importantly, the class is initialized again in the Site Health pages
 thus the tests run twice.

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


More information about the wp-trac mailing list