mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 11:53:53 +02:00
removing white space, fixing text domain not loading
fixes #120 Signed-off-by: Tom McFarlin <tom@tommcfarlin.com>
This commit is contained in:
parent
c684270d39
commit
d2eb67079b
1 changed files with 3 additions and 2 deletions
|
@ -134,6 +134,7 @@ class Plugin_Name {
|
|||
|
||||
switch_to_blog( $blog_id );
|
||||
self::single_activate();
|
||||
|
||||
}
|
||||
|
||||
restore_current_blog();
|
||||
|
@ -256,8 +257,8 @@ class Plugin_Name {
|
|||
$domain = $this->plugin_slug;
|
||||
$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
|
||||
|
||||
load_textdomain( $domain, trailingslashit( WP_LANG_DIR ) . $domain . '/' . $domain . '-' . $locale . '.mo' );
|
||||
load_plugin_textdomain( $domain, FALSE, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . 'languages/' );
|
||||
load_textdomain( $domain, $domain . '/languages/' . $domain . '-' . $locale . '.mo' );
|
||||
load_plugin_textdomain( $domain, FALSE, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . '/languages/' );
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue