Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#37215 closed defect (bug) (fixed)

Pass correct params to get_site_by_path

Reported by: spacedmonkey Owned by:
Priority: normal Milestone: 4.6
Component: Networks and Sites Version: 4.6
Severity: normal Keywords: has-patch
Cc: Focuses: multisite

Description

In get_site_by_path it uses the get_sites function to get the a site object. However, the params that are passed to the function are incorrect. The order param in the case of multiple paths and domains, is correctly incorrect and only works by luck of default ordering being the same.

Attachments (1)

get_sites_by_path_patch.diff​ (830 bytes ) - added by spacedmonkey 10 years ago.

Download all attachments as: .zip

Change History (3)

#1 @DrewAPicture
10 years ago

  • Keywords has-patch added
  • Milestone Awaiting Review → 4.6

#2 @jeremyfelt
10 years ago

  • Resolution → fixed
  • Status new → closed

Fixed in [37930], which missed Trac but is in SVN.

Note: See TracTickets for help on using tickets.