Skip to content
Snippets Groups Projects
Commit e274a7e1 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

Merge branch 'bugfix/plugin-text-domain-wp-6.7-revert' into 'master'

bugfix(load_plugin_textdomain): revert WP 6.7 changes

See merge request !9
parents 08fe6a62 2fa46a64
No related branches found
Tags 1.2.2
1 merge request!9bugfix(load_plugin_textdomain): revert WP 6.7 changes
Pipeline #440587 passed with stages
in 48 seconds
## [1.2.2] - 2024-11-09
### Fixed
- Reverted: WordPress 6.7 compatibility: loading text domain
## [1.2.1] - 2024-11-09
### Fixed
- WordPress 6.7 compatibility: loading text domain
......
......@@ -153,13 +153,11 @@ final class PluginBootstrap {
if ( method_exists( $plugin_info, 'get_language_dir' ) ) {
$lang_dir = $plugin_info->get_language_dir();
}
add_action( 'init', function () use ( $plugin_info, $lang_dir ) {
\load_plugin_textdomain(
$plugin_info->get_text_domain(),
'',
basename( $plugin_info->get_plugin_dir() ) . "/$lang_dir/"
);
});
\load_plugin_textdomain(
$plugin_info->get_text_domain(),
false,
basename( $plugin_info->get_plugin_dir() ) . "/$lang_dir/"
);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment