Skip to content

Commit

Permalink
#141 [Block] fix: missing remove include files
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Jun 6, 2023
1 parent 59ffc81 commit b47d862
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions core/action/class-wpshop-action.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,6 @@ public function callback_install_default() {
* @version 2.0.0
*/
public function callback_init_block() {
$asset_file = include( PLUGIN_WPSHOP_PATH . 'build/block.asset.php');

wp_register_script(
'wpshop-products',
PLUGIN_WPSHOP_URL . '/build/block.js',
$asset_file['dependencies'],
$asset_file['version']
);

wp_localize_script( 'wpshop-products', 'wpshop', array(
'homeUrl' => home_url(),
'addToCartNonce' => wp_create_nonce( 'add_to_cart' ),
Expand Down

0 comments on commit b47d862

Please sign in to comment.