| @@ -14,8 +14,9 @@ | ||
| 14 | 14 | |
| 15 | 15 | var data = { |
| 16 | 16 | action: 'stateless_enable_notice_button_action', |
| 17 | 17 | key: _this.data('key'), |
| 18 | + _ajax_nonce: stateless_error_notice_vars.enable_action_nonce ?? '', | |
| 18 | 19 | } |
| 19 | 20 | |
| 20 | 21 | jQuery.post( ajaxurl, data, function ( result_data ) { |
| 21 | 22 | if( result_data.success == '1' ) { |
| @@ -40,8 +41,9 @@ | ||
| 40 | 41 | |
| 41 | 42 | var data = { |
| 42 | 43 | action: 'stateless_notice_dismiss', |
| 43 | 44 | key: _this.data('key'), |
| 45 | + _ajax_nonce: stateless_error_notice_vars.dismiss_nonce ?? '', | |
| 44 | 46 | } |
| 45 | 47 | |
| 46 | 48 | jQuery.post( ajaxurl, data, function ( result_data ) { |
| 47 | 49 | if( result_data.success == '1' ) { |