Skip to content

Commit eee493f

Browse files
committed
fix: welcome notification not always available for dismiss
1 parent 11dadaa commit eee493f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Modules/Notification.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ public static function dismiss() {
399399
if ( empty( $id ) ) {
400400
wp_send_json( [] );
401401
}
402+
self::setup_notifications();
402403
$ids = wp_list_pluck( self::$notifications, 'id' );
403404
if ( ! in_array( $id, $ids, true ) ) {
404405
wp_send_json( [] );

0 commit comments

Comments
 (0)