[wp-trac] [WordPress Trac] #28625: Enhancement: Add constants to support SSL connections for mysqli
WordPress Trac
noreply at wordpress.org
Sat Jun 24 12:22:46 UTC 2023
#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 miahdsl):
Just as a heads up for anyone else using the secure db connection plugin,
you need to tweak db.php to disable mysqli error reporting as wordpress
handles this itself.
Without this, installation of a clean site will fail with a blank screen
and errors in the logs.
Around line 39 of db.php, right after:
if ( $this->use_mysqli ) {
Add the line:
mysqli_report( MYSQLI_REPORT_OFF );
The resultant code will look like:
if ( $this->use_mysqli ) {
mysqli_report( MYSQLI_REPORT_OFF );
$this->dbh = mysqli_init();
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28625#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list