Prevent double inclusion of plugin when already activated on main site. See #14435
git-svn-id: https://develop.svn.wordpress.org/trunk@16027 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5fa521edf1
commit
3c1191be53
|
@ -483,7 +483,7 @@ function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silen
|
|||
if ( !empty($redirect) )
|
||||
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
|
||||
ob_start();
|
||||
include(WP_PLUGIN_DIR . '/' . $plugin);
|
||||
include_once(WP_PLUGIN_DIR . '/' . $plugin);
|
||||
|
||||
if ( ! $silent ) {
|
||||
do_action( 'activate_plugin', $plugin, $network_wide );
|
||||
|
|
Loading…
Reference in New Issue