Make WordPress Core


Ignore:
Timestamp:
10/02/2015 07:07:23 PM (9 years ago)
Author:
jeremyfelt
Message:

MS: Use *_network_option() functions throughout core.

Replaces all uses of *_site_option() with the corresponding "network" function.

This excludes one usage in wp-admin/admin-footer.php that needs more investigation.

Props spacedmonkey.
See #28290.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

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