From 3fb7f472c46ca2cec80cfe7ac518091047ccb247 Mon Sep 17 00:00:00 2001 From: girishpanchal30 Date: Mon, 9 Sep 2024 10:43:56 +0530 Subject: [PATCH] fix: hide the welcome notice for users who lack install_plugins permissions --- inc/core/admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/core/admin.php b/inc/core/admin.php index 97485c6d82..e8b9d72539 100644 --- a/inc/core/admin.php +++ b/inc/core/admin.php @@ -388,7 +388,7 @@ public function admin_notice() { return; } - if ( ! current_user_can( 'manage_options' ) ) { + if ( ! current_user_can( 'install_plugins' ) ) { return; }