From 6e411a5ea99babb9b6aa70c927e4b812db345e14 Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 25 Jun 2012 20:00:31 +0000 Subject: [PATCH] Load the admin MO file on repair.php. props SergeyBiryukov. see #21039 for trunk. git-svn-id: http://core.svn.wordpress.org/trunk@21109 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/l10n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index 851b3730f7..7ec3c426aa 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -392,7 +392,7 @@ function load_default_textdomain() { return; } - if ( is_admin() ) + if ( is_admin() || ( defined( 'WP_REPAIRING' ) && WP_REPAIRING ) ) load_textdomain( 'default', WP_LANG_DIR . "/admin-$locale.mo" ); if ( is_network_admin() || ( defined( 'WP_INSTALLING_NETWORK' ) && WP_INSTALLING_NETWORK ) )