From 3d38b99ce63b89ebd030a003e4befecabd8b5306 Mon Sep 17 00:00:00 2001
From: Grzegorz Rola <grola@seostudio.pl>
Date: Tue, 25 Jun 2019 13:46:14 +0200
Subject: [PATCH] Added notice dismiss link.

---
 src/WPDesk/Notice/AjaxHandler.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/WPDesk/Notice/AjaxHandler.php b/src/WPDesk/Notice/AjaxHandler.php
index f222e42..d98c26e 100644
--- a/src/WPDesk/Notice/AjaxHandler.php
+++ b/src/WPDesk/Notice/AjaxHandler.php
@@ -81,13 +81,16 @@ class AjaxHandler implements HookablePluginDependant
      */
     public function processAjaxNoticeDismiss()
     {
+error_log(print_r($_POST,true));
         if (isset($_POST[self::POST_FIELD_NOTICE_NAME])) {
             $noticeName = $_POST[self::POST_FIELD_NOTICE_NAME];
+
             if (isset($_POST[self::POST_FIELD_SOURCE])) {
                 $source = $_POST[ self::POST_FIELD_SOURCE ];
             } else {
                 $source = null;
             }
+
             update_option(
                 PermanentDismissibleNotice::OPTION_NAME_PREFIX . $noticeName,
                 PermanentDismissibleNotice::OPTION_VALUE_DISMISSED
-- 
GitLab