Fix PaymentGatewaySuggestionsDataSourcePoller and disable deprecation logging (#46163)

* Temporarily disable deprecation logging and use old DataSourcePoller class

* Changelog

* Update DataSourcePoller.php

* Change to comment for lint

* Typo again

* Lint

* Better comment from @nigeljamesstevenson
This commit is contained in:
Ilyas Foo 2024-04-03 21:42:26 +08:00 committed by GitHub
parent c2f486b407
commit ded85d1d40
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 9 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Temporary disable DataSourcePoller class deprecation message

View File

@ -16,14 +16,11 @@ abstract class DataSourcePoller extends RemoteSpecsDataSourcePoller {
* Log a deprecation to the error log.
*/
private static function log_deprecation() {
error_log( // phpcs:ignore
sprintf(
'%1$s is deprecated since version %2$s! Use %3$s instead.',
self::class,
'8.8.0',
'Automattic\WooCommerce\Admin\RemoteSpecs\DataSourcePoller'
)
);
/**
* Note: Deprecation messages have been temporarily disabled due to upgrade issues.
* For more details, see the discussion in the WooCommerce GitHub repository:
* https://github.com/woocommerce/woocommerce/pull/45892.
*/
}
/**

View File

@ -2,7 +2,7 @@
namespace Automattic\WooCommerce\Admin\Features\PaymentGatewaySuggestions;
use Automattic\WooCommerce\Admin\RemoteSpecs\DataSourcePoller;
use Automattic\WooCommerce\Admin\DataSourcePoller;
/**
* Specs data source poller class for payment gateway suggestions.