diff --git a/src/WPDesk/Notice/AjaxHandler.php b/src/WPDesk/Notice/AjaxHandler.php index f222e42896b1e17ca9882d9c54cfdcac66c7684e..d98c26e6df3959b5215cc16e6cbde87e3fbef313 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