Skip to content
Snippets Groups Projects

Feature/notice dismiss link

Merged Krzysztof Dyszczyk requested to merge feature/notice-dismiss-link into master
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 3
0
@@ -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
Loading