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

Commit

Permalink
Product Gallery block: Fix 404 errors occurring on frontend (#10555)
Browse files Browse the repository at this point in the history
* Prevent block from loading frontend scripts

* Fix issue with Product Gallery not being registered on the Editor

* Fix php cs error
  • Loading branch information
thealexandrelara authored Aug 21, 2023
1 parent 6eecded commit 1d0af20
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/BlockTypes/ProductGallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,13 @@ class ProductGallery extends AbstractBlock {
protected function get_block_type_style() {
return null;
}

/**
* It isn't necessary register block assets because it is a server side block.
*/
protected function register_block_type_assets() {
parent::register_block_type_assets();

return null;
}
}

0 comments on commit 1d0af20

Please sign in to comment.