[wp-trac] Re: [WordPress Trac] #2622: Allow multiple installations using single user database.

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 1 20:25:48 GMT 2006


#2622: Allow multiple installations using single user database.
----------------------------+-----------------------------------------------
       Id:  2622            |      Status:  new                     
Component:  Administration  |    Modified:  Sat Apr  1 20:25:47 2006
 Severity:  enhancement     |   Milestone:                          
 Priority:  normal          |     Version:  2.0.2                   
    Owner:  anonymous       |    Reporter:  Denney                  
----------------------------+-----------------------------------------------
Comment (by ryan):

 Users shouldn't automatically be given privs on the blog.  They should be
 assigned to a blog by an admin.

 During install, automatically give the admin privs on the newly created
 blog.  It is then up to the admin to add the user to the blog.  This will
 require some UI.

 We already have a $blog_id that can be set in wp-settings.php.  The blog
 id can be used to create unique table names by incorporating it into the
 prefix.  If a prefix is set to "wp%blog_id", substitute the current blog
 ID into the prefix when creating the tables.  For the user and usermeta
 tables, subsititute an empty string for %blog_id since those tables should
 be global.  The presence of %blog_id in the prefix could be the key that
 tells us "do multi blog stuff".

 Of course, we're venturing into WPMU territory here.  It already does all
 of this, though slightly differently.  But, this might be a good way to
 offer basic multi blog support to those who don't need the power of WPMU.

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


More information about the wp-trac mailing list