Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Revert changes made to ProductButton.php in #7504
Browse files Browse the repository at this point in the history
To ensure no JS for product elements inside Product Query block is loaded.
  • Loading branch information
dinhtungdu committed Dec 16, 2022
1 parent e875692 commit a391971
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/BlockTypes/ProductButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ protected function get_block_type_supports() {
* It is necessary to register and enqueue assets during the render phase because we want to load assets only if the block has the content.
*/
protected function register_block_type_assets() {
parent::register_block_type_assets();
$this->register_chunk_translations( [ $this->block_name ] );
return null;
}

/**
Expand Down

0 comments on commit a391971

Please sign in to comment.