Skip to content

Commit df661b9

Browse files
committed
Fixed: Function _load_textdomain_just_in_time was called incorrectly in WP 6.8
1 parent 47a835a commit df661b9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Plugin.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ public function setup() {
4242
* @return void
4343
*/
4444
public function register_services() {
45+
4546
if ( is_admin() ) {
47+
add_action( 'init', [ $this, 'load_settings' ] );
48+
4649
new Admin\Upgrades();
47-
new Admin\Settings\Page();
4850
new Admin\Filters();
4951
new Admin\Actions();
5052
new Admin\Module();
@@ -60,6 +62,10 @@ public function register_services() {
6062
new Proxy();
6163
}
6264

65+
public function load_settings() {
66+
new Admin\Settings\Page();
67+
}
68+
6369
/**
6470
* Loads the plugin's translated strings.
6571
*

0 commit comments

Comments
 (0)