Use current_user_can('manage_network_plugins') in validate_active_plugins() instead of is_super_admin().
props jdgrimes. fixes #26068. git-svn-id: https://develop.svn.wordpress.org/trunk@26590 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
21c76b2340
commit
57bede1005
@ -839,7 +839,7 @@ function validate_active_plugins() {
|
||||
$plugins = array();
|
||||
}
|
||||
|
||||
if ( is_multisite() && is_super_admin() ) {
|
||||
if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) {
|
||||
$network_plugins = (array) get_site_option( 'active_sitewide_plugins', array() );
|
||||
$plugins = array_merge( $plugins, array_keys( $network_plugins ) );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user