Make WordPress Core


Ignore:
Timestamp:
10/27/2010 11:54:43 PM (14 years ago)
Author:
scribu
Message:

Prevent double inclusion of plugin when already activated on main site. See #14435

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r16012 r16027  
    484484            wp_redirect(add_query_arg('_error_nonce', wp_create_nonce('plugin-activation-error_' . $plugin), $redirect)); // we'll override this later if the plugin can be included without fatal error
    485485        ob_start();
    486         include(WP_PLUGIN_DIR . '/' . $plugin);
     486        include_once(WP_PLUGIN_DIR . '/' . $plugin);
    487487
    488488        if ( ! $silent ) {
Note: See TracChangeset for help on using the changeset viewer.