Skip to content

Commit

Permalink
Fix PaymentGatewaySuggestionsDataSourcePoller and disable deprecation…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
ilyasfoo authored and WooCommerce Bot committed Apr 3, 2024
1 parent efa9b50 commit bd2030c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

Temporary disable DataSourcePoller class deprecation message
13 changes: 5 additions & 8 deletions plugins/woocommerce/src/Admin/DataSourcePoller.php
Expand Up @@ -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.
*/
}

/**
Expand Down
Expand Up @@ -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.
Expand Down

0 comments on commit bd2030c

Please sign in to comment.