WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#37215 closed defect (bug) (fixed)

Pass correct params to get_site_by_path

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

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 3 years ago.

Download all attachments as: .zip

Change History (3)

#1 @DrewAPicture
3 years ago

  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 4.6

#2 @jeremyfelt
3 years ago

  • Resolution set to fixed
  • Status changed from new to closed

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

Note: See TracTickets for help on using tickets.