[wp-trac] [WordPress Trac] #26941: Too many arguments passed to prepare() during multisite load

WordPress Trac noreply at wordpress.org
Sun Jan 26 09:00:35 UTC 2014


#26941: Too many arguments passed to prepare() during multisite load
----------------------------+-----------------------------
 Reporter:  jeremyfelt      |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  low             |  Milestone:  Awaiting Review
Component:  Bootstrap/Load  |    Version:  3.0
 Severity:  minor           |   Keywords:  has-patch
  Focuses:  multisite       |
----------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26941>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list