[wp-trac] [WordPress Trac] #15757: Using sanitize_key in wpmu_create_blog removes "." from the domain name

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 9 19:53:27 UTC 2010


#15757: Using sanitize_key in wpmu_create_blog removes "." from the domain name
--------------------------+-------------------------------------------------
 Reporter:  Omicron7      |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.1            
 Severity:  major         |    Keywords:                 
--------------------------+-------------------------------------------------
 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/

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15757>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list