Fix locale notice

Closes #15502
This commit is contained in:
Mike Jolley 2017-06-07 14:31:09 +01:00
parent 325740ed5d
commit 0d7614d44b
1 changed files with 1 additions and 1 deletions

View File

@ -1637,7 +1637,7 @@ function wc_get_permalink_structure() {
*/
function wc_switch_to_site_locale() {
if ( function_exists( 'switch_to_locale' ) ) {
switch_to_locale( $switch_to_locale );
switch_to_locale( get_locale() );
// Filter on plugin_locale so load_plugin_textdomain loads the correct locale.
add_filter( 'plugin_locale', 'get_locale' );