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:
parent
c2f486b407
commit
ded85d1d40
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
Temporary disable DataSourcePoller class deprecation message
|
|
@ -16,14 +16,11 @@ abstract class DataSourcePoller extends RemoteSpecsDataSourcePoller {
|
||||||
* Log a deprecation to the error log.
|
* Log a deprecation to the error log.
|
||||||
*/
|
*/
|
||||||
private static function log_deprecation() {
|
private static function log_deprecation() {
|
||||||
error_log( // phpcs:ignore
|
/**
|
||||||
sprintf(
|
* Note: Deprecation messages have been temporarily disabled due to upgrade issues.
|
||||||
'%1$s is deprecated since version %2$s! Use %3$s instead.',
|
* For more details, see the discussion in the WooCommerce GitHub repository:
|
||||||
self::class,
|
* https://github.com/woocommerce/woocommerce/pull/45892.
|
||||||
'8.8.0',
|
*/
|
||||||
'Automattic\WooCommerce\Admin\RemoteSpecs\DataSourcePoller'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace Automattic\WooCommerce\Admin\Features\PaymentGatewaySuggestions;
|
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.
|
* Specs data source poller class for payment gateway suggestions.
|
||||||
|
|
Loading…
Reference in New Issue