[wp-trac] [WordPress Trac] #49577: Site Health Status Dashboard provides incorrect items count on initial load
WordPress Trac
noreply at wordpress.org
Wed Mar 11 08:37:39 UTC 2020
#49577: Site Health Status Dashboard provides incorrect items count on initial load
-----------------------------+---------------------
Reporter: garrett-eclipse | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.4
Component: Site Health | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: ui
-----------------------------+---------------------
Comment (by roytanck):
As a test, I just installed a fresh copy of RC2 locally (XAMPP), and added
some error_log statements to the dashboard widget before my first visit.
It appears that the `health-check-site-status-result` transient has been
set by the time the dashboard widget is first shown.
In my case it contained 10 good tests, 7 recommended and 0 critical. Once
the tests ran, that changed to
`{"good":"9","recommended":"5","critical":"2","0":"NaN"}`. Not sure what
the NaN is about, but different numbers.
Could it be that the tests are run during install, and this is somehow
premature?
If I remove the transient from the database, the "no information" message
is shown, as sxpected.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49577#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list