diff --git a/includes/AdminNotices.php b/includes/AdminNotices.php index c744d78..c331b41 100644 --- a/includes/AdminNotices.php +++ b/includes/AdminNotices.php @@ -46,17 +46,17 @@ public static function maybeRenderAdminNotices() { self::openContainer(); if ( $collection->count() ) { - $collection->each( - function ( Notification $notification ) use ( $page ) { - if ( $notification->shouldShow( 'wp-admin-notice', array( 'page' => $page ) ) ) { - ?> -
- content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> -
- shouldShow( 'wp-admin-notice', array( 'page' => $page ) ) ) { + ?> +
+ content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> +
+