[wp-trac] [WordPress Trac] #34450: get_id_from_blogname returns false if the main domain starts with www.

WordPress Trac noreply at wordpress.org
Mon Oct 26 11:37:11 UTC 2015


#34450: get_id_from_blogname returns false if the main domain starts with www.
------------------------------------------+------------------------------
 Reporter:  igmoweb                       |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Networks and Sites            |     Version:  4.3.1
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:  multisite
------------------------------------------+------------------------------

Comment (by igmoweb):

 I've added the change in 34450.patch though I'm not able to make unit
 tests under the following conditions:

 I've grabbed the regexp from wp-admin/site-new.php where www. is stripped
 out.

 1. Subdomains install
 2. Prefix www. to the test domain without changing WP_TESTS_DOMAIN const
 in wp-tests-config.php

 It would be awesome if someone is capable of that or jsut give me some
 directions to set the environment with PHPUnit tests bootstrap and I'll
 make it.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34450#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list