Skip to content

Commit

Permalink
fix: remove creation of dynamic property
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Thulin committed Feb 22, 2024
1 parent f45929c commit 5813c40
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/php/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ public function __construct()
add_filter('Municipio/blade/view_paths', array($this, 'addViewPaths'), 2, 1);
}
}, 10);

$this->cacheBust = new \EventManagerIntegration\Helper\CacheBust();
}

/**
Expand Down Expand Up @@ -121,7 +119,7 @@ public function enqueueFront()
);

// Scripts
wp_register_script('event-integration', EVENTMANAGERINTEGRATION_URL . '/dist/' . $this->cacheBust->name('js/event-integration-front.js'), 'jquery', false, true);
wp_register_script('event-integration', EVENTMANAGERINTEGRATION_URL . '/dist/' . Helper\CacheBust::name('js/event-integration-front.js'), 'jquery', false, true);

wp_localize_script('event-integration', 'eventintegration', array(
'ajaxurl' => admin_url('admin-ajax.php'),
Expand Down

0 comments on commit 5813c40

Please sign in to comment.