Typo fix in Network Plugins. Props nacin. See #11881

git-svn-id: http://svn.automattic.com/wordpress/trunk@12772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-01-20 07:37:53 +00:00
parent 515d1354da
commit da10910302

View File

@ -53,19 +53,19 @@ function ms_network_settings() {
function ms_network_plugins() {
$network_plugins = array();
$deleted_sitewide_plugins = array();
$wpmu_sitewide_plugins = (array) maybe_unserialize( get_site_option( 'wpmu_sitewide_plugins' ) );
foreach( $wpmu_sitewide_plugins as $plugin_file => $activation_time ) {
if ( !$plugin_file )
continue;
if ( !file_exists( WP_PLUGIN_DIR . '/' . $plugin_file ) ) {
if ( !file_exists( WP_PLUGIN_DIR . '/' . $plugin_file ) )
$deleted_sitewide_plugins[] = $plugin_file;
} else {
$network_plugins = WP_PLUGIN_DIR . '/' . $plugin_file;
}
else
$network_plugins[] = WP_PLUGIN_DIR . '/' . $plugin_file;
}
if ( isset( $deleted_sitewide_plugins ) ) {
if ( !empty( $deleted_sitewide_plugins ) ) {
$active_sitewide_plugins = maybe_unserialize( get_site_option( 'active_sitewide_plugins' ) );
/* Remove any deleted plugins from the wpmu_sitewide_plugins array */