|
@@ 385-388 (lines=4) @@
|
| 382 |
|
} |
| 383 |
|
|
| 384 |
|
$notice_key = Give()->notices->get_notice_key( $notice_id, $_post['dismiss_interval'] ); |
| 385 |
|
if ( 'user' === $_post['dismissible_type'] ) { |
| 386 |
|
$current_user = wp_get_current_user(); |
| 387 |
|
$notice_key = Give()->notices->get_notice_key( $notice_id, $_post['dismiss_interval'], $current_user->ID ); |
| 388 |
|
} |
| 389 |
|
|
| 390 |
|
$notice_dismiss_time = ! empty( $_post['dismiss_interval_time'] ) ? $_post['dismiss_interval_time'] : null; |
| 391 |
|
|
|
@@ 470-473 (lines=4) @@
|
| 467 |
|
$notice_key = $this->get_notice_key( $notice['id'], $notice['dismiss_interval'] ); |
| 468 |
|
$is_notice_dismissed = false; |
| 469 |
|
|
| 470 |
|
if ( 'user' === $notice['dismissible_type'] ) { |
| 471 |
|
$current_user = wp_get_current_user(); |
| 472 |
|
$notice_key = Give()->notices->get_notice_key( $notice['id'], $notice['dismiss_interval'], $current_user->ID ); |
| 473 |
|
} |
| 474 |
|
|
| 475 |
|
$notice_data = Give_Cache::get( $notice_key, true ); |
| 476 |
|
|