Use id instance property in DataSourcePoller instead of ID const defined in child classes (https://github.com/woocommerce/woocommerce-admin/pull/7865)

This commit is contained in:
Matt Sherman 2021-11-03 17:28:43 -04:00 committed by GitHub
parent 44a01d6fe6
commit e7a8193529
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ abstract class DataSourcePoller {
*/
public function read_specs_from_data_sources() {
$specs = array();
$data_sources = apply_filters( self::FILTER_NAME, $this->data_sources, $this::ID );
$data_sources = apply_filters( self::FILTER_NAME, $this->data_sources, $this->id );
// Note that this merges the specs from the data sources based on the
// id - last one wins.