Remove admin check around global po Closes #5029
This commit is contained in:
parent
256b1e011c
commit
4ab4811c57
|
@ -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" );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue