From 290b377a31b94700cba60e8ec6a2b009b4b2e250 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 4 Jun 2014 05:00:15 +0000 Subject: [PATCH] Mark the `MYSQL_NEW_LINK` constant as deprecated in 3.9+ as no equivalent to the `$new_link` parameter exists in `mysqli_*` functions. Fixes #27933. Built from https://develop.svn.wordpress.org/trunk@28657 git-svn-id: http://core.svn.wordpress.org/trunk@28475 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/wp-db.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 03e4e08910..68ac32c219 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -1314,6 +1314,10 @@ class wpdb { $this->is_mysql = true; + /* + * Deprecated in 3.9+ when using MySQLi. No equivalent + * $new_link parameter exists for mysqli_* functions. + */ $new_link = defined( 'MYSQL_NEW_LINK' ) ? MYSQL_NEW_LINK : true; $client_flags = defined( 'MYSQL_CLIENT_FLAGS' ) ? MYSQL_CLIENT_FLAGS : 0;