August 2, 2019 at 5:06 pm
#87687
Gerald Menzel
Spectator
Hi Syam,
Yes, and I actually already did that. That’s how I knew that WordPress itself generates the message (\wp-admin\user-edit.php, line 191).
WP checks is_super_admin( $profileuser->ID ) && current_user_can( ‘manage_network_options’ ). Both function should return false for any non-admin user, but both seem to return true somehow when your plugin is active. I’m not a PHP programmer, so I don’t know how to debug this.