From 017e097dafe8d8cdc8ed6200d695084d4538196f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 8 Oct 2015 17:10:58 +0000 Subject: [PATCH] Add `wp_load_translations_early()` to `wpdb::check_connection()`. Fixes #29306. See #34216. git-svn-id: https://develop.svn.wordpress.org/trunk@34943 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/wp-db.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/wp-db.php b/src/wp-includes/wp-db.php index 8e6c053d38..61492745e7 100644 --- a/src/wp-includes/wp-db.php +++ b/src/wp-includes/wp-db.php @@ -1633,6 +1633,8 @@ class wpdb { return false; } + wp_load_translations_early(); + $message = '

' . __( 'Error reconnecting to the database' ) . "

\n"; $message .= '

' . sprintf(