Opened 10 years ago
Closed 10 years ago
#37123 closed defect (bug) (fixed)
Explicitly globalize $wpdb in either wp-settings.php or ms-settings.php
| Reported by: | danielbachhuber | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.6 |
| Component: | Bootstrap/Load | Version: | |
| Severity: | normal | Keywords: | needs-patch dev-feedback |
| Cc: | Focuses: |
Description
ms-settings.php implicitly expects $wpdb to be a globalized variable. However, neither wp-settings.php nor ms-settings.php explicitly globalizes it, which causes a fatal when wp-settings.php is called within a function.
$wpdb should be explicitly globalized, either in wp-settings.php or ms-settings.php. I don't have a strong preference as to which.
From https://github.com/wp-cli/wp-cli/pull/3031/commits/dc38f0834d6cd47f3c424e5ae2d357da81567f54
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 37864: