WordPress.org

Make WordPress Core

Ticket #48142: CS-network.php.diff

File CS-network.php.diff, 752 bytes (added by garrett-eclipse, 13 months ago)

CS improvement for network.php

  • tests/phpunit/tests/multisite/network.php

     
    273273                        add_action( 'deactivated_plugin', array( $this, '_helper_deactivate_hook' ) );
    274274
    275275                        // activate the plugin sitewide
    276                         activate_plugin( $path, '', $network_wide = true );
    277                         $active_plugins                           = wp_get_active_network_plugins();
     276                        activate_plugin( $path, '', true );  // $network_wide = true
     277                        $active_plugins = wp_get_active_network_plugins();
    278278                        $this->assertEquals( array( WP_PLUGIN_DIR . '/hello.php' ), $active_plugins );
    279279
    280280                        //deactivate the plugin