Skip to content

Commit

Permalink
ensure every gateway has individual settings object
Browse files Browse the repository at this point in the history
  • Loading branch information
Timur Karimov committed Mar 8, 2024
1 parent 713362b commit 2b25747
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog/fix-gateway-individual-settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Ensure every gateway has individual settings object.
2 changes: 1 addition & 1 deletion includes/class-wc-payment-gateway-wcpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -2400,7 +2400,7 @@ public function get_option( $key, $empty_value = null ) {
*/
public function get_option_key() {
// Intentionally using self instead of static so options are loaded from main gateway settings.
return $this->plugin_id . self::GATEWAY_ID . '_settings';
return $this->plugin_id . $this->id . '_settings';
}


Expand Down

0 comments on commit 2b25747

Please sign in to comment.