Opened 3 years ago
Closed 3 years ago
#59977 closed defect (bug) (fixed)
Remove the Unused global variables in the class-wp-site-health.php file.
| Reported by: | upadalavipul | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.5 |
| Component: | Site Health | Version: | 5.2 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | coding-standards |
Description
I have reviewed the class-wp-site-health.php file code and found the get_test_utf8mb4_support function unused global $wpdb variable. So we need to remove the here $wpdb global variable.
File Path: wp-admin/includes/class-wp-site-health.php
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for the ticket and patch!
Nice catch, The global was introduce in [44984] / #46573 and in [56475] / #59118 we removed the use of that global so we should remove that global.