WordPress.org

Make WordPress Core

Ticket #31327: 31327.patch

File 31327.patch, 486 bytes (added by ianmjones, 7 years ago)

When installing a plugin via AJAX request, do not auto-activate if Multisite.

  • src/wp-admin/includes/ajax-actions.php

     
    29042904        }
    29052905
    29062906        $plugin_status = install_plugin_install_status( $api );
    2907         activate_plugin( $plugin_status['file'] );
    29082907
     2908        if ( ! is_multisite() ) {
     2909                activate_plugin( $plugin_status['file'] );
     2910        }
     2911
    29092912        wp_send_json_success( $status );
    29102913}
    29112914