Make WordPress Core


Ignore:
Timestamp:
10/07/2015 05:11:01 PM (9 years ago)
Author:
jeremyfelt
Message:

Revert [34778], continue using _site_option() for the current network.

The _network_option() parameter order will be changing to accept $network_id first. The _site_option() functions will remain in use throughout core as our way of retrieving a network option for the current network.

See #28290.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/upgrade.php

    r34778 r34912  
    5353             */
    5454            global $wp_db_version;
    55             update_network_option( 'wpmu_upgrade_site', $wp_db_version );
     55            update_site_option( 'wpmu_upgrade_site', $wp_db_version );
    5656        }
    5757
     
    110110    case 'show':
    111111    default:
    112         if ( get_network_option( 'wpmu_upgrade_site' ) != $GLOBALS['wp_db_version'] ) :
     112        if ( get_site_option( 'wpmu_upgrade_site' ) != $GLOBALS['wp_db_version'] ) :
    113113        ?>
    114114        <h2><?php _e( 'Database Upgrade Required' ); ?></h2>
Note: See TracChangeset for help on using the changeset viewer.