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
No related branches found
No related tags found
1 merge request!5feat: remove compilation command
This commit is part of merge request !5. Comments created here will be created in the context of that merge request.
...@@ -14,11 +14,7 @@ class I18n implements Hookable { ...@@ -14,11 +14,7 @@ class I18n implements Hookable {
} }
public function hooks(): void { public function hooks(): void {
if ( did_action( 'plugins_loaded' ) ) { add_action( 'init', $this );
$this->__invoke();
} else {
add_action( 'plugins_loaded', $this );
}
} }
public function __invoke(): void { 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