mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-10 12:50:18 +01:00
Use current_user_can('manage_network_plugins') in validate_active_plugins() instead of is_super_admin().
props jdgrimes. fixes #26068. Built from https://develop.svn.wordpress.org/trunk@26590 git-svn-id: http://core.svn.wordpress.org/trunk@26480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b04d321fb9
commit
c4f7821a16
@ -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