Skip to content
Snippets Groups Projects
Verified Commit fa051ae0 authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

feat: WordPress 6.7 compatibility change

parent 91b56c70
Branches
Tags
1 merge request!5feat: remove compilation command
......@@ -14,11 +14,7 @@ class I18n implements Hookable {
}
public function hooks(): void {
if ( did_action( 'plugins_loaded' ) ) {
$this->__invoke();
} else {
add_action( 'plugins_loaded', $this );
}
add_action( 'init', $this );
}
public function __invoke(): void {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment