You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The id for the Site Health Status widget is wrong in the Dashboard widgets API section. Two code blocks use that wrong identifier and need to be fixed.
The Site Health Status widget allegedly has the id health_check_status but that is not true. In fact, it has the id dashboard_site_health as can be verified here.
In consequence, code boxes 1 and 3 of the provided section use the incorrect id. When the correct id is used, the code works as expected.
Suggested Fix
Replace health_check_status with dashboard_site_health.
The text was updated successfully, but these errors were encountered:
I also did a var_dump($wp_meta_boxes['dashboard']['normal']['core']['health_check_status']) and it returned NULL, i.e. there is no alternative Dashboard widget with that name that could be meant.
Issue Description
The id for the Site Health Status widget is wrong in the Dashboard widgets API section. Two code blocks use that wrong identifier and need to be fixed.
URL of the Page with the Issue
https://developer.wordpress.org/apis/dashboard-widgets/#removing-default-dashboard-widgets
Section of Page with the issue
https://developer.wordpress.org/apis/dashboard-widgets/#removing-default-dashboard-widgets
Why is this a problem?
The Site Health Status widget allegedly has the id
health_check_status
but that is not true. In fact, it has the iddashboard_site_health
as can be verified here.In consequence, code boxes 1 and 3 of the provided section use the incorrect id. When the correct id is used, the code works as expected.
Suggested Fix
Replace
health_check_status
withdashboard_site_health
.The text was updated successfully, but these errors were encountered: