| @@ -26,16 +26,14 @@ | ||
| 26 | 26 | return wp_send_json_error( [ 'mess' => __( 'Verify nonce failed', 'yaymail' ) ] ); |
| 27 | 27 | } |
| 28 | 28 | try { |
| 29 | 29 | // The Notice should comeback after 60 days |
| 30 | - update_option( 'yaymail_next_recommendation_notice_time', time() + 60 * 60 * 24 * 60 ); | |
| 30 | + update_option( 'yaymail_next_recommendation_suggest_addons_notice_time', time() + 60 * 60 * 24 * 60 ); | |
| 31 | 31 | wp_send_json_success(); |
| 32 | 32 | } catch ( \Error $error ) { |
| 33 | 33 | yaymail_get_logger( $error ); |
| 34 | - wp_send_json_error( [ 'mess' => $error->getMessage() ] ); | |
| 35 | 34 | } catch ( \Exception $exception ) { |
| 36 | 35 | yaymail_get_logger( $exception ); |
| 37 | - wp_send_json_error( [ 'mess' => $exception->getMessage() ] ); | |
| 38 | 36 | } |
| 39 | 37 | } |
| 40 | 38 | |
| 41 | 39 | public function yaymail_dismiss_upgrade_notice() { |
| @@ -48,11 +46,9 @@ | ||
| 48 | 46 | update_option( 'yaymail_next_recommendation_upgrade_notice_time', time() + 60 * 60 * 24 * 60 ); |
| 49 | 47 | wp_send_json_success(); |
| 50 | 48 | } catch ( \Error $error ) { |
| 51 | 49 | yaymail_get_logger( $error ); |
| 52 | - wp_send_json_error( [ 'mess' => $error->getMessage() ] ); | |
| 53 | 50 | } catch ( \Exception $exception ) { |
| 54 | 51 | yaymail_get_logger( $exception ); |
| 55 | - wp_send_json_error( [ 'mess' => $exception->getMessage() ] ); | |
| 56 | 52 | } |
| 57 | 53 | } |
| 58 | 54 | } |