Opened 13 years ago
Closed 13 years ago
#26941 closed defect (bug) (fixed)
Too many arguments passed to prepare() during multisite load
| Reported by: | jeremyfelt | Owned by: | nacin |
|---|---|---|---|
| Priority: | low | Milestone: | 3.9 |
| Component: | Bootstrap/Load | Version: | 3.0 |
| Severity: | minor | Keywords: | has-patch commit |
| Cc: | Focuses: | multisite |
Description
One of the queries that may be used to set $current_site in wpmu_current_site() passes too many arguments to the prepare() statement building the query. Because path in the query is set to /, there is no need to pass a $path argument.
This has been here since [12787] and looks like it may be an accidental match of the query right above it, which does need the 3 arguments. The additional argument doesn't cause any errors, just a little confusion when reading through the code.
Attachments (1)
Change History (3)
Note:
See TracTickets
for help on using tickets.
In 27076: