PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
← All changes | src/Notifications/Notification.jsx +2 -0 3.1.53.2.1 View file →
@@ -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>