| @@ -28,8 +28,10 @@ | ||
| 28 | 28 | * @since 1.5.7 |
| 29 | 29 | * @return void |
| 30 | 30 | */ |
| 31 | 31 | public function handle_maybe_later_rating_btn() { |
| 32 | + check_ajax_referer( 'sellkit_admin', 'nonce' ); | |
| 33 | + | |
| 32 | 34 | sellkit_update_option( 'sellkit_rating_notice_trigger', time() + 48 * 60 * 60 ); |
| 33 | 35 | wp_send_json_success( esc_html__( 'The operation was successful.', 'sellkit' ) ); |
| 34 | 36 | } |
| 35 | 37 | |
| @@ -101,8 +103,12 @@ | ||
| 101 | 103 | $dismissed_notices = empty( $dismissed_notices ) ? [] : $dismissed_notices; |
| 102 | 104 | $new_dismissed_notices = array_merge( $dismissed_notices, [ $new_notice_key ] ); |
| 103 | 105 | |
| 104 | 106 | sellkit_update_option( 'dismissed_notices', array_filter( array_unique( $new_dismissed_notices ) ) ); |
| 107 | + | |
| 108 | + if ( 'sellkit-partners-theme-offer' === $new_notice_key ) { | |
| 109 | + update_option( 'sellkit-partner-offer-theme-dismissed', time() ); | |
| 110 | + } | |
| 105 | 111 | } |
| 106 | 112 | } |
| 107 | 113 | |
| 108 | 114 | new Sellkit_Notices(); |