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 ## [3.2.4] - 2024-03-11
### Fixed ### Fixed
- permission check on notice dismiss action - permission check on notice dismiss action
......
...@@ -66,7 +66,7 @@ class AjaxHandler implements HookablePluginDependant { ...@@ -66,7 +66,7 @@ class AjaxHandler implements HookablePluginDependant {
* Add Java Script to admin header. * Add Java Script to admin header.
*/ */
public function addScriptToAdminHead() { 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' ) ) { ...@@ -4,5 +4,5 @@ if ( ! defined( 'ABSPATH' ) ) {
} // Exit if accessed directly } // Exit if accessed directly
?> ?>
<script type="text/javascript"> <script type="text/javascript">
<?php include dirname(__FILE__, 5) . '/assets/js/notice.js'; ?> <?php require_once dirname(__FILE__, 5) . '/assets/js/notice.js'; ?>
</script> </script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment