Remove construct method from Product Archive Compatiblity Layer (https://github.com/woocommerce/woocommerce-blocks/pull/8915)
Methods invoked in the constructor were already called when registering a class, so it duplicated the hooks
This commit is contained in:
parent
6ca96260a8
commit
39298f1341
|
@ -23,14 +23,6 @@ class ArchiveProductTemplatesCompatibility extends AbstractTemplateCompatibility
|
|||
*/
|
||||
protected $hook_data;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->set_hook_data();
|
||||
$this->init();
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the render block data to inject our custom attribute needed to
|
||||
* determine which blocks belong to an inherited Products block.
|
||||
|
|
Loading…
Reference in New Issue