| @@ -18,8 +18,9 @@ | ||
| 18 | 18 | const [notification] = useState(() => notificationFor(slot)); |
| 19 | 19 | |
| 20 | 20 | const slug = notification?.slug; |
| 21 | 21 | const source = notification?.source; |
| 22 | + const dismissible = notification?.dismissible ?? false; | |
| 22 | 23 | // Only wp-admin defines pagenow; frontend slots never mount there. |
| 23 | 24 | const page = |
| 24 | 25 | window.pagenow ?? (slot.startsWith('frontend-') ? 'frontend' : ''); |
| 25 | 26 | const { href, external } = resolveNotificationLink(notification, siteHost()); |
| @@ -51,8 +52,9 @@ | ||
| 51 | 52 | <Template |
| 52 | 53 | notification={notification} |
| 53 | 54 | href={href} |
| 54 | 55 | external={external} |
| 56 | + dismissible={dismissible} | |
| 55 | 57 | onDismiss={dismiss} |
| 56 | 58 | onClick={click} |
| 57 | 59 | /> |
| 58 | 60 | </div> |