[wp-trac] [WordPress Trac] #20589: domain_exists should add trailing slash to path

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 3 00:36:37 UTC 2012


#20589: domain_exists should add trailing slash to path
--------------------------+------------------------------
 Reporter:  ejdanderson   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Multisite     |     Version:  3.0
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by jamescollins):

 When working on #21142, I encountered $path being empty when creating a
 site via wp-signup.php, so I agree that we should be running
 trailingslashit on the path.

 The $site_id parameter does not need to be cast to an integer though,
 because the $wpdb->prepare() takes care of that.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20589#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list