Opened 13 years ago
Closed 13 years ago
#26942 closed defect (bug) (invalid)
Unnecessary $sites count condition in multisite load process
| Reported by: | jeremyfelt | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | Bootstrap/Load | Version: | 3.0 |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: | multisite |
Description
mu:1422 moved a check for single network vs multi-network into wpmu_current_site(). Existing code inside wpmu_current_site() intended for a $sites count of 1 become inaccessible.
In [12921], the remaining count checks were consolidated into one, but the instance of 1 == count( $sites ) in that scenario is still not accessible.
This doesn't hurt anything and the likelihood of this part of the function being reached is so extremely low. It does cause a double take. And made me investigate it.
Attachments (1)
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Closing in favor of the work being done in #27003