From 9e5b7cec31f3e6be8ee64b75eedcf55e26f690b6 Mon Sep 17 00:00:00 2001
From: dyszczo <krzysiek@inspirelabs.pl>
Date: Tue, 30 Jul 2019 15:05:23 +0200
Subject: [PATCH] security for templates + prefixer

---
 CHANGELOG.md                              | 6 +++++-
 src/WPDesk/Notice/views/admin-head-js.php | 5 +++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0a963c2..6a6a268 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,8 @@
+## [3.1.1] - 2019-07-30
+### Fixed
+- Security for templates as side effect is generated there. Also required for prefixer compatibility
+
 ## [3.1.0] - 2019-06-25
 ### Added
 - close notice on .notice-dismiss-link class
-- source field in ajax action
\ No newline at end of file
+- source field in ajax action
diff --git a/src/WPDesk/Notice/views/admin-head-js.php b/src/WPDesk/Notice/views/admin-head-js.php
index f3774d9..0a8c096 100644
--- a/src/WPDesk/Notice/views/admin-head-js.php
+++ b/src/WPDesk/Notice/views/admin-head-js.php
@@ -1,3 +1,8 @@
+<?php
+if ( ! defined( 'ABSPATH' ) ) {
+    exit;
+} // Exit if accessed directly
+?>
 <script type="text/javascript">
     <?php include dirname(__FILE__) . '/../../../../assets/js/notice.min.js'; ?>
 
-- 
GitLab