From e93ba05b5136b4e53b16864afc29f30efd156e99 Mon Sep 17 00:00:00 2001 From: Ricardo Metring Date: Mon, 22 Apr 2024 20:28:01 -0300 Subject: [PATCH] Remove legacy "has_adapted_extension_installed" method --- ...remove-legacy-code-in-class-woopay-utilities | 4 ++++ includes/woopay/class-woopay-utilities.php | 17 +---------------- 2 files changed, 5 insertions(+), 16 deletions(-) create mode 100644 changelog/fix-remove-legacy-code-in-class-woopay-utilities diff --git a/changelog/fix-remove-legacy-code-in-class-woopay-utilities b/changelog/fix-remove-legacy-code-in-class-woopay-utilities new file mode 100644 index 00000000000..d8c50c60a6a --- /dev/null +++ b/changelog/fix-remove-legacy-code-in-class-woopay-utilities @@ -0,0 +1,4 @@ +Significance: patch +Type: dev + +Remove legacy method from `WooPay_Utilities`. diff --git a/includes/woopay/class-woopay-utilities.php b/includes/woopay/class-woopay-utilities.php index d2f049c377b..83c4f576212 100644 --- a/includes/woopay/class-woopay-utilities.php +++ b/includes/woopay/class-woopay-utilities.php @@ -252,24 +252,9 @@ public static function get_woopay_url() { return defined( 'PLATFORM_CHECKOUT_HOST' ) ? PLATFORM_CHECKOUT_HOST : self::DEFAULT_WOOPAY_URL; } - /** - * Returns true if an extension WooPay supports is installed . - * - * @return bool - */ - public function has_adapted_extension_installed() { - foreach ( self::ADAPTED_EXTENSIONS as $supported_extension ) { - if ( in_array( $supported_extension, apply_filters( 'active_plugins', get_option( 'active_plugins' ) ), true ) ) { - return true; - } - } - - return false; - } - /** * Return an array with encrypted and signed data. - * + * * @param array $data The data to be encrypted and signed. * @return array The encrypted and signed data. */