[wp-trac] Re: [WordPress Trac] #2512: Allow PHP constant to set new
options table in wp-config.php
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 27 09:35:11 GMT 2006
#2512: Allow PHP constant to set new options table in wp-config.php
----------------------------+-----------------------------------------------
Id: 2512 | Status: assigned
Component: Administration | Modified: Mon Feb 27 09:35:11 2006
Severity: normal | Milestone: 2.1
Priority: normal | Version: 2.0.1
Owner: markjaquith | Reporter: markjaquith
----------------------------+-----------------------------------------------
Old description:
> I've had several clients ask me to set up a test install of their blog so
> that they can try out theme changes and plugins without compromising
> their main blog. If we let a constant determine the options table, they
> could use the same table_prefix as their main blog, but just specify a
> different options table so plugins, home/siteurl, themes could be
> different, but all the other blog data (posts, comments, links,
> categories) would be the same.
>
> I'm uploading a patch that should do this. It does it dynamically, from
> the database, but this is really only going to be used for development
> purposes, so I think that's acceptable. We can't save the option in the
> local options table because changes in the main blog won't be reflected.
> I'm open to suggestions here as to an alternate strategy.
New description:
I've had several clients ask me to set up a test install of their blog so
that they can try out theme changes and plugins without compromising their
main blog. If we let a constant determine the options table, they could
use the same table_prefix as their main blog, but just specify a different
options table so plugins, home/siteurl, themes could be different, but all
the other blog data (posts, comments, links, categories) would be the
same.
Comment (by markjaquith):
[ok, I'm a retart...this was supposed to be a comment, not a description
change]
I'm uploading a patch that should do this. It does it dynamically, from
the database, but this is really only going to be used for development
purposes, so I think that's acceptable. We can't save the option in the
local options table because changes in the main blog won't be reflected.
I'm open to suggestions here as to an alternate strategy.
--
Ticket URL: <http://trac.wordpress.org/ticket/2512>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list