WordPress.org

Make WordPress Core

Ticket #27003: 27003.19.diff

File 27003.19.diff, 599 bytes (added by jeremyfelt, 6 years ago)

Missing data parameter in wp_cache_set

  • src/wp-includes/ms-settings.php

     
    7575                        $one_network = $wpdb->get_row( "SELECT * FROM $wpdb->site LIMIT 2" ); // [sic]
    7676                        if ( 1 === $wpdb->num_rows ) {
    7777                                $current_site = wp_get_network( $one_network );
    78                                 wp_cache_set( 'current_network', 'site-options' );
     78                                wp_cache_set( 'current_network', $current_site, 'site-options' );
    7979                        } elseif ( 0 === $wpdb->num_rows ) {
    8080                                ms_not_installed();
    8181                        }