Skip to content

Commit

Permalink
Revert MS related stuff in plugins.php from [15491]
Browse files Browse the repository at this point in the history
git-svn-id: http://core.svn.wordpress.org/trunk@15492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
scribu committed Aug 11, 2010
1 parent b4066d5 commit e2ab9f2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions wp-admin/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,15 +299,6 @@ function plugin_sandbox_scrape( $plugin ) {
}
}

if ( is_multisite() && is_super_admin() ) {
$menu_perms = get_site_option('menu_items', array());
if ( empty($menu_perms['plugins']) )
add_action( 'admin_notices', '_admin_notice_multisite_activate_plugins_page' );
unset($menu_perms);
}

$invalid = validate_active_plugins();

require_once( ABSPATH . 'wp-admin/includes/default-list-tables.php' );

$table = new WP_Plugins_Table;
Expand All @@ -330,6 +321,7 @@ function plugin_sandbox_scrape( $plugin ) {

require_once(ABSPATH . 'wp-admin/admin-header.php');

$invalid = validate_active_plugins();
if ( !empty($invalid) )
foreach ( $invalid as $plugin_file => $error )
echo '<div id="message" class="error"><p>' . sprintf(__('The plugin <code>%s</code> has been <strong>deactivated</strong> due to an error: %s'), esc_html($plugin_file), $error->get_error_message()) . '</p></div>';
Expand Down

0 comments on commit e2ab9f2

Please sign in to comment.