[wp-trac] Re: [WordPress Trac] #9308: Plugins easily break
wp-db.php - one line patch fixes the problem
WordPress Trac
wp-trac at lists.automattic.com
Tue Mar 10 13:30:19 GMT 2009
#9308: Plugins easily break wp-db.php - one line patch fixes the problem
---------------------------------------------+------------------------------
Reporter: mark8barnes | Owner: anonymous
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version: 2.7.1
Severity: normal | Resolution: invalid
Keywords: wp-db, has-patch, needs-testing |
---------------------------------------------+------------------------------
Comment(by jacobsantos):
As an aside, if you used PDO, then each instance is self contained,
meaning, you can have one instance connecting to one Database and another
instance connecting to another with no interference between the two.
You can achieve this using the mysql, using various hacks which are not
fully tested (in theory shit that should work, tends not to). I'm almost
certain that if you used the OO library of mysqli that you can also
achieve the same effect.
The point is, is that WordPress expects for its environment to be
immutable and it is not a bug to expect for it to stay this way. If a
plugin wants WordPress to function correctly, then they need to be sure
the environment stays the way WordPress wants it.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9308#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list