Skip to content

Commit fe83d7e

Browse files
committed
Call hook directly
1 parent f00178c commit fe83d7e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Services/ApiKeyService.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@ public function copyKeysToCentralSettings() {
6969

7070
// Only bother with settings if standalone migration didn't complete everything
7171
if (!$standaloneSuccess) {
72-
$existingSettings = get_option('woocommerce_monei_settings', null);
73-
if ($existingSettings !== null) {
74-
add_filter('option_woocommerce_monei_settings', array($this, 'processCentralSettings'), 10, 1);
75-
}
72+
add_filter('option_woocommerce_monei_settings', array($this, 'processCentralSettings'), 10, 1);
7673
}
7774
}
7875
}

0 commit comments

Comments
 (0)