Remove admin check around global po Closes #5029

This commit is contained in:
Mike Jolley 2014-03-04 12:42:39 +00:00
parent 256b1e011c
commit 4ab4811c57
1 changed files with 3 additions and 5 deletions

View File

@ -431,11 +431,9 @@ final class WooCommerce {
load_textdomain( 'woocommerce', dirname( __FILE__ ) . "/i18n/languages/woocommerce-admin-$locale.mo" );
}
// Frontend Locale
if ( ! is_admin() || is_ajax() ) {
load_plugin_textdomain( 'woocommerce', false, plugin_basename( dirname( __FILE__ ) ) . "/i18n/languages" );
load_textdomain( 'woocommerce', WP_LANG_DIR . "/woocommerce/woocommerce-$locale.mo" );
}
// Global + Frontend Locale
load_plugin_textdomain( 'woocommerce', false, plugin_basename( dirname( __FILE__ ) ) . "/i18n/languages" );
load_textdomain( 'woocommerce', WP_LANG_DIR . "/woocommerce/woocommerce-$locale.mo" );
}
/**