mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2025-04-19 05:35:36 +03:00
Use plugin-name directly instead of passing a variable through
This should fix the incorrect pattern of using a variable where we should be using the plugin-name instead. Same goes for any translatable strings within the plugin (no more using $this->plugin-name etc).
This commit is contained in:
parent
5391e0ca27
commit
0c099e4208
2 changed files with 2 additions and 19 deletions
|
@ -135,7 +135,6 @@ class Plugin_Name {
|
|||
private function set_locale() {
|
||||
|
||||
$plugin_i18n = new Plugin_Name_i18n();
|
||||
$plugin_i18n->set_domain( $this->get_plugin_name() );
|
||||
|
||||
$this->loader->add_action( 'plugins_loaded', $plugin_i18n, 'load_plugin_textdomain' );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue