From 076fbdb5d44f0c9e44b4e4dc8d31e775688f6412 Mon Sep 17 00:00:00 2001 From: Carsten Bach Date: Mon, 29 Jul 2024 22:48:48 +0200 Subject: [PATCH] Fix admin-Notice to not render into REST requests, etc. --- includes/core/classes/class-setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/core/classes/class-setup.php b/includes/core/classes/class-setup.php index 152c6a9fa..95f53817d 100644 --- a/includes/core/classes/class-setup.php +++ b/includes/core/classes/class-setup.php @@ -87,7 +87,7 @@ protected function setup_hooks(): void { add_action( 'init', array( $this, 'maybe_flush_rewrite_rules' ) ); add_action( 'admin_notices', array( $this, 'check_users_can_register' ) ); - add_action( 'admin_init', array( $this, 'check_gatherpress_alpha' ) ); + add_action( 'admin_notices', array( $this, 'check_gatherpress_alpha' ) ); add_action( 'wp_initialize_site', array( $this, 'on_site_create' ) ); add_filter( 'block_categories_all', array( $this, 'register_gatherpress_block_category' ) );