diff --git a/plugin-name/public/class-plugin-name.php b/plugin-name/public/class-plugin-name.php index 1414c30..a3db272 100644 --- a/plugin-name/public/class-plugin-name.php +++ b/plugin-name/public/class-plugin-name.php @@ -134,7 +134,6 @@ class Plugin_Name { switch_to_blog( $blog_id ); self::single_activate(); - } restore_current_blog(); @@ -257,8 +256,8 @@ class Plugin_Name { $domain = $this->plugin_slug; $locale = apply_filters( 'plugin_locale', get_locale(), $domain ); - load_textdomain( $domain, $domain . '/languages/' . $domain . '-' . $locale . '.mo' ); - load_plugin_textdomain( $domain, FALSE, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . '/languages/' ); + load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' ); + load_plugin_textdomain( $domain, FALSE, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . 'languages/' ); }