Skip to content
Snippets Groups Projects
Commit 138339c9 authored by Piotr Potrebka's avatar Piotr Potrebka
Browse files

fix: duplicates

parent d884c9e7
No related branches found
No related tags found
1 merge request!29fix: duplicates
Pipeline #340743 passed with warnings
## [3.2.5] - 2024-03-18
### Fixed
- remove duplicates for JS
## [3.2.4] - 2024-03-11
### Fixed
- permission check on notice dismiss action
......
......@@ -66,7 +66,7 @@ class AjaxHandler implements HookablePluginDependant {
* Add Java Script to admin header.
*/
public function addScriptToAdminHead() {
include __DIR__ . '/views/admin-head-js.php';
require_once __DIR__ . '/views/admin-head-js.php';
}
/**
......
......@@ -4,5 +4,5 @@ if ( ! defined( 'ABSPATH' ) ) {
} // Exit if accessed directly
?>
<script type="text/javascript">
<?php include dirname(__FILE__, 5) . '/assets/js/notice.js'; ?>
<?php require_once dirname(__FILE__, 5) . '/assets/js/notice.js'; ?>
</script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment