#3684 closed defect (bug) (fixed)
New blog creation in default theme – Blog URL suffix text incorrect for subdomain installation in case of domains without www
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 1.5.2 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Blogs | Keywords: | reporter-feedback |
Cc: |
Description
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
Note: See
TracTickets for help on using
tickets.
I can't reproduce this on my subdomain installations, which are not using www in their domain names.
I have a local installation http://subdomain.test, and the text on subdomain.test/blogs/create reads:
Site Domain: [form input].subdomain.test/
Can you give the exact steps necessary to reproduce the issue?