Skip to content

Commit 43feac3

Browse files
committed
Removed Minimum Framework Checks
Removed remaining minimum framework checks from the payment gateway plugin class, now that this is handled by the framework bootstrap
1 parent 80e49b7 commit 43feac3

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

woocommerce/payment-gateway/class-sv-wc-payment-gateway-plugin.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,20 +96,14 @@ abstract class SV_WC_Payment_Gateway_Plugin extends SV_WC_Plugin {
9696
*
9797
* @since 1.0
9898
* @see SV_WC_Plugin::__construct()
99-
* @param string $minimum_version the minimum Framework version required by the concrete gateway
10099
* @param string $id plugin id
101100
* @param string $version plugin version number
102101
* @param string $text_domain the plugin text domain
103102
* @param array $args plugin arguments
104103
*/
105-
public function __construct( $minimum_version, $id, $version, $text_domain, $args ) {
104+
public function __construct( $id, $version, $text_domain, $args ) {
106105

107-
parent::__construct( $minimum_version, $id, $version, $text_domain, $args );
108-
109-
// ensure the minimum version requirement is met
110-
if ( ! $this->check_version( $minimum_version ) ) {
111-
return;
112-
}
106+
parent::__construct( $id, $version, $text_domain, $args );
113107

114108
// optional parameters: the supported gateways
115109
if ( isset( $args['gateways'] ) ) {

0 commit comments

Comments
 (0)