diff --git a/src/WPDesk/Notice/AjaxHandler.php b/src/WPDesk/Notice/AjaxHandler.php index d4083ba6beba98ce05ea3cea27f0ffd24daa168d..f222e42896b1e17ca9882d9c54cfdcac66c7684e 100644 --- a/src/WPDesk/Notice/AjaxHandler.php +++ b/src/WPDesk/Notice/AjaxHandler.php @@ -83,11 +83,11 @@ class AjaxHandler implements HookablePluginDependant { 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; - } + 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