[buddypress-trac] [BuddyPress] #3684: New blog creation in default theme – Blog URL suffix text incorrect for subdomain installation in case of domains without www

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Oct 14 16:29:09 UTC 2011


#3684: New blog creation in default theme – Blog URL suffix text incorrect for
subdomain installation in case of domains without www
--------------------------+-----------------------------
 Reporter:  zbacsi        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Blogs         |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Wordpress 3.2.1, BuddyPress 1.5

 This bug is NOT the same as #3103

 If the root blog is mydomain.com (without www) the suffix text should end
 in:
 {{{
 http://[form input].mydomain.com

 Instead what appears is:
 http://[form input].http://mydomain.com
 }}}
 I realized the regexp is wrong in this file:
 http://buddypress.trac.wordpress.org/browser/trunk/bp-themes/bp-
 default/registration/register.php#L193

 The current regexp is:


 {{{
 preg_replace( '|^https?://(?:www\.)|', '', "http://www.mysite.com");
 mysite.com

 preg_replace( '|^https?://(?:www\.)|', '', "http://mysite.com");
 http://mysite.com
 }}}

 Recommended regexp:
 {{{
 preg_replace( '|^https?://(www\.)*|', '', "http://www.mysite.com");
 mysite.com

 preg_replace( '|^https?://(www\.)*|', '', "http://mysite.com");
 mysite.com
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3684>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list