[wp-trac] [WordPress Trac] #18117: get_blog_details is sensitive to path's trailing slash

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 14 20:20:39 UTC 2011


#18117: get_blog_details is sensitive to path's trailing slash
-----------------------------+-----------------------------
 Reporter:  mitchoyoshitaka  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Multisite        |    Version:
 Severity:  normal           |   Keywords:  2nd-opinion
-----------------------------+-----------------------------
 STR:
 1. Create a site, then edit it so that the domain is the main domain and
 the path is /sub. Note that the admin doesn't turn this into /sub/, nor
 give an error.
 2. Go to /sub/wp-admin. You'll notice it doesn't redirect, but it just
 gives you the main site's wp-admin. Going to /sub also just gets
 interpreted as a URL for the main site.

 Potential solutions:
 1. Make the admin automatically turn the path of /sub into /sub/.
 2. Make get_blog_details match modulo trailing slash.
 3. (Document carefully in Codex and hope people read it.)

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


More information about the wp-trac mailing list