[wp-trac] [WordPress Trac] #19324: Allow more flexible mysql_connect configuration (compression, ssl, etc)
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 14 17:51:11 UTC 2012
#19324: Allow more flexible mysql_connect configuration (compression, ssl, etc)
-----------------------------+------------------------------
Reporter: Otto42 | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: 3.2
Severity: normal | Resolution:
Keywords: 2nd-opinion |
-----------------------------+------------------------------
Comment (by Otto42):
I attached a db.php file which you can drop into the wp-content directly.
It basically extends the wpdb class to create a custom_wpdb class, which
incorporates the patch.
This will let you run the same patch without hacking core. It's not a
great solution, but I can't think of a better one because as nacin said,
plugins don't have the ability to easily modify that section of code
(making filters useless) and using defines are rather unpleasant at best.
Still, having a drop in like this to do that sort of thing is better than
hacking core.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19324#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list