Commit 41db0b2
committed
Refactor the population of the WordPress current network object
As of WordPress 3.9, `wpmu_current_site()` was deprecated and not
left with a full, working replacement.
We know that this environment relies on a single multisite network
and can populate a network object accordingly. If for some reason
multiple networks are used in the future, check to make sure the
populated site object matches the network as expected.1 parent f5df91c commit 41db0b2
1 file changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
2 | 12 | | |
3 | 13 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 14 | | |
10 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
11 | 22 | | |
12 | 23 | | |
13 | 24 | | |
| |||
0 commit comments