Skip to content

Commit

Permalink
only show warning to admins
Browse files Browse the repository at this point in the history
  • Loading branch information
tillkruss committed Mar 4, 2019
1 parent 0bf17e0 commit 2b36c96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 2b36c96

Please sign in to comment.