[wp-trac] [WordPress Trac] #18079: WP has dropped support of the path field in the site table

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 14 17:33:26 UTC 2012


#18079: WP has dropped support of the path field in the site table
--------------------------+------------------------------
 Reporter:  brianlayman   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Multisite     |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by nacin):

 If you install WP in a subdirectory, as in /foo/, then RewriteBase will be
 /foo/, .htaccess will be inside /foo/, $current_site->path will be /foo/.

 These changes are only really for a multi-network situation. Which makes
 it tricky, the existing rewrite rules work just fine for the first
 network. Setting up a second network requires direct API calls and in some
 cases, yes, some .htaccess modifications. So I'm not too concerned about
 not yet supporting this in core.

 Removing $base in favor of $current_site->path all together (proposed for
 3.5 elsewhere) and removing ms-files.php all together (ditto) should make
 this a bit easier in general. Then it's just a few rewrite rules.

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


More information about the wp-trac mailing list