mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
♻️ Remove an unused param to avoid confusion
The DCC status is not defered from the Settings instance, but from the specific DCCGatewayConfiguration service.
This commit is contained in:
parent
16b4e235f2
commit
a39edd0225
2 changed files with 2 additions and 6 deletions
|
@ -196,10 +196,7 @@ return array(
|
|||
$compatibility_checker = $container->get( 'axo.helpers.compatibility-checker' );
|
||||
assert( $compatibility_checker instanceof CompatibilityChecker );
|
||||
|
||||
$settings = $container->get( 'wcgateway.settings' );
|
||||
assert( $settings instanceof Settings );
|
||||
|
||||
return $compatibility_checker->generate_settings_conflict_notice( $settings );
|
||||
return $compatibility_checker->generate_settings_conflict_notice();
|
||||
},
|
||||
|
||||
'axo.checkout-config-notice' => static function ( ContainerInterface $container ) : string {
|
||||
|
|
|
@ -223,11 +223,10 @@ class CompatibilityChecker {
|
|||
/**
|
||||
* Generates a warning notice with instructions on conflicting plugin-internal settings.
|
||||
*
|
||||
* @param Settings $settings The plugin settings container, which is checked for conflicting values.
|
||||
* @param bool $raw_message Whether to return raw message without HTML wrappers.
|
||||
* @return string
|
||||
*/
|
||||
public function generate_settings_conflict_notice( Settings $settings, bool $raw_message = false ) : string {
|
||||
public function generate_settings_conflict_notice( bool $raw_message = false ) : string {
|
||||
if ( $this->dcc_configuration->is_enabled() ) {
|
||||
return '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue