Opened 6 years ago
Closed 6 years ago
#50282 closed defect (bug) (fixed)
wp_ajax_health_check_is_in_debug_mode is not used, contains incorrect nonce check
| Reported by: | johnbillion | Owned by: | johnbillion |
|---|---|---|---|
| Priority: | low | Milestone: | 5.6 |
| Component: | Site Health | Version: | 5.2 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
The wp_ajax_health_check_is_in_debug_mode() function is not used because the is_in_debug_mode site health check is a direct one, not an async one, therefore this Ajax handler is not used.
In addition the nonce check in this function is incorrect. wp_verify_nonce() is called without its return value being checked, rendering it non-functional.
It looks like this function can be safely removed. Marking as needs a second opinion in case I missed something.
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Can I get a second opinion on removing this function?