From 1a85c9646fba3ed4dc0527575680c784332d8b89 Mon Sep 17 00:00:00 2001 From: Grzegorz Rola <grola@seostudio.pl> Date: Tue, 15 May 2018 15:41:52 +0200 Subject: [PATCH] Translations loading --- src/Plugin/AbstractPlugin.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Plugin/AbstractPlugin.php b/src/Plugin/AbstractPlugin.php index d41be55..fc7fe70 100644 --- a/src/Plugin/AbstractPlugin.php +++ b/src/Plugin/AbstractPlugin.php @@ -59,9 +59,6 @@ error_log('init'); * @return void */ public function load_plugin_text_domain() { -error_log('load'); -error_log($this->get_text_domain()); -error_log($this->get_namespace()); load_plugin_textdomain( $this->get_text_domain(), false, $this->get_namespace() . '/lang/' ); } @@ -77,7 +74,7 @@ error_log($this->get_namespace()); add_action( 'wp_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ) ); - add_action( 'plugins_loaded', array( $this, 'load_plugin_text_domain' ), 100 ); + add_action( 'plugins_loaded', array( $this, 'load_plugin_text_domain' ) ); add_filter( 'plugin_action_links_' . plugin_basename( $this->get_plugin_file_path() ), array( $this, 'links_filter' -- GitLab