WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#15757 closed defect (bug) (invalid)

Using sanitize_key in wpmu_create_blog removes "." from the domain name

Reported by: Omicron7 Owned by:
Milestone: Priority: normal
Severity: major Version: 3.1
Component: General Keywords:
Focuses: Cc:

Description

This bug was introduced with the fix for #14910, changeset [16822].

Using sanitize_key on the domain of a blog in wpmu_create_blog causes the domain name to lose all . characters. This in turn causes site_url, home_url and get_blogaddress_by_id() to return an invalid url.

Example:
wpmu_create_blog('www.example.com', '/blog1/', 'Title', . . .);
creates a blog with site_url = http://wwwexamplecom/blog1/

Change History (1)

comment:1 duck_3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Already reverted, see r16848

Note: See TracTickets for help on using tickets.