[wp-trac] [WordPress Trac] #28625: Enhancement: Add constants to support SSL connections for mysqli

WordPress Trac noreply at wordpress.org
Wed Feb 3 08:52:58 UTC 2021


#28625: Enhancement: Add constants to support SSL connections for mysqli
----------------------------------------+-----------------------------
 Reporter:  hypertextranch              |       Owner:  (none)
     Type:  enhancement                 |      Status:  assigned
 Priority:  normal                      |   Milestone:  Future Release
Component:  Database                    |     Version:  4.0
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  privacy
----------------------------------------+-----------------------------

Comment (by szaqal21):

 SSL shouldn't be set by constants inside db_connect(), it will force SSL
 for every new wpdb() even for custom (external connections) to databases
 without SSL support. SSL should be set by passing some extra args to new
 wpdb() or some kind of filter before connection is made.

 Attaching my db.php dropin.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/28625#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list