Opened 13 years ago
Closed 13 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)
Note: See
TracTickets for help on using
tickets.
Already reverted, see r16848