From 2b36c964f227f3e48d35613e67b180428ce90ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Till=20Kru=CC=88ss?= Date: Sun, 3 Mar 2019 17:32:57 -0800 Subject: [PATCH] only show warning to admins --- includes/admin.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/admin.php b/includes/admin.php index 7659c67..caef582 100644 --- a/includes/admin.php +++ b/includes/admin.php @@ -457,6 +457,10 @@ function eae_compatibility_warnings() { return; } + if ( ! current_user_can( 'manage_options' ) ) { + return; + } + $plugins = apply_filters( 'active_plugins', get_option( 'active_plugins' ) ); foreach ( $plugins as $plugin ) {