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:
Andrew Nacin 2013-12-03 21:12:10 +00:00
parent b04d321fb9
commit c4f7821a16

View File

@ -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 ) );
}