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:
parent
44a01d6fe6
commit
e7a8193529
|
@ -115,7 +115,7 @@ abstract class DataSourcePoller {
|
||||||
*/
|
*/
|
||||||
public function read_specs_from_data_sources() {
|
public function read_specs_from_data_sources() {
|
||||||
$specs = array();
|
$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
|
// Note that this merges the specs from the data sources based on the
|
||||||
// id - last one wins.
|
// id - last one wins.
|
||||||
|
|
Loading…
Reference in New Issue