Load the admin MO file on repair.php. props SergeyBiryukov. see #21039 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@21109 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-06-25 20:00:31 +00:00
parent 588a342f55
commit e6112c2845

View File

@ -392,7 +392,7 @@ function load_default_textdomain() {
return; return;
} }
if ( is_admin() ) if ( is_admin() || ( defined( 'WP_REPAIRING' ) && WP_REPAIRING ) )
load_textdomain( 'default', WP_LANG_DIR . "/admin-$locale.mo" ); load_textdomain( 'default', WP_LANG_DIR . "/admin-$locale.mo" );
if ( is_network_admin() || ( defined( 'WP_INSTALLING_NETWORK' ) && WP_INSTALLING_NETWORK ) ) if ( is_network_admin() || ( defined( 'WP_INSTALLING_NETWORK' ) && WP_INSTALLING_NETWORK ) )