#34217 closed defect (bug) (fixed)
Explicitly globalize $blog_id, $public, and $site_id in ms-settings.php
Reported by: | danielbachhuber | Owned by: | jeremyfelt |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Bootstrap/Load | Keywords: | has-patch |
Focuses: | multisite | Cc: |
Description (last modified by )
See https://github.com/wp-cli/wp-cli/pull/2131
Related #23685
Attachments (1)
Change History (7)
#1
@
9 years ago
- Description modified (diff)
- Summary changed from Explicitly globalize $blog_id, $public, and $site_id to Explicitly globalize $blog_id, $public, and $site_id in ms-settings.php
This ticket was mentioned in Slack in #core by danielbachhuber. View the logs.
9 years ago
#3
@
9 years ago
- Keywords has-patch added; needs-patch removed
- Milestone changed from Future Release to 4.4
- Version set to 3.0
This ticket was mentioned in Slack in #core-multisite by jeremyfelt. View the logs.
9 years ago
#5
@
9 years ago
- Owner set to jeremyfelt
- Resolution set to fixed
- Status changed from new to closed
In 34961:
This ticket was mentioned in Slack in #core-multisite by jeremyfelt. View the logs.
7 years ago
Note: See
TracTickets for help on using
tickets.
$blog_id
as an almost explicit global was introduced in [3011] and moved to its current less explicit location in [12732]. I think we'll need to mark it right before callingwp_initial_constants()
inwp-settings.php
.I don't remember ever reading this inline comment:
34217.diff addresses the
$blog_id
issue.$public
was merged over with MU. I'm not sure if it was ever used by core, but it is no longer. I think we can get away with not explicitly globalizing it and we should instead think about the consequences of removing it. :)$site_id
was also merged over with MU. It is no longer used anywhere by core either. We should think about the consequences of removing this as well.Related: we accidentally (maybe?) got rid of the
$sites
global in 3.9 and there were no explosions, just a desire to have a replacement viawp_get_networks()
in #29415.