diff --git a/wp-includes/version.php b/wp-includes/version.php index ffb00a3038..9ee46e5db0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53669'; +$wp_version = '6.1-alpha-53670'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 6df284e0aa..d61fc4f0a6 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -2077,6 +2077,9 @@ class wpdb { } } + // MySQLi port cannot be a string; must be null or an integer. + $port = $port ? absint( $port ) : null; + return array( $host, $port, $socket, $is_ipv6 ); }