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/includes/class-wp-plugins-list-table.php

    r34786 r34912  
    131131
    132132        if ( $screen->in_admin( 'network' ) ) {
    133             $recently_activated = get_network_option( 'recently_activated', array() );
     133            $recently_activated = get_site_option( 'recently_activated', array() );
    134134        } else {
    135135            $recently_activated = get_option( 'recently_activated', array() );
     
    143143
    144144        if ( $screen->in_admin( 'network' ) ) {
    145             update_network_option( 'recently_activated', $recently_activated );
     145            update_site_option( 'recently_activated', $recently_activated );
    146146        } else {
    147147            update_option( 'recently_activated', $recently_activated );
Note: See TracChangeset for help on using the changeset viewer.