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/plugins.php

    r34591 r34778  
    5656                update_option( 'recently_activated', $recent );
    5757            } else {
    58                 $recent = (array) get_site_option( 'recently_activated' );
     58                $recent = (array) get_network_option( 'recently_activated' );
    5959                unset( $recent[ $plugin ] );
    60                 update_site_option( 'recently_activated', $recent );
     60                update_network_option( 'recently_activated', $recent );
    6161            }
    6262
     
    102102                $recent = (array) get_option('recently_activated' );
    103103            } else {
    104                 $recent = (array) get_site_option('recently_activated' );
     104                $recent = (array) get_network_option( 'recently_activated' );
    105105            }
    106106
     
    112112                update_option( 'recently_activated', $recent );
    113113            } else {
    114                 update_site_option( 'recently_activated', $recent );
     114                update_network_option( 'recently_activated', $recent );
    115115            }
    116116
     
    183183                update_option( 'recently_activated', array( $plugin => time() ) + (array) get_option( 'recently_activated' ) );
    184184            } else {
    185                 update_site_option( 'recently_activated', array( $plugin => time() ) + (array) get_site_option( 'recently_activated' ) );
     185                update_network_option( 'recently_activated', array( $plugin => time() ) + (array) get_network_option( 'recently_activated' ) );
    186186            }
    187187
     
    221221                update_option( 'recently_activated', $deactivated + (array) get_option( 'recently_activated' ) );
    222222            } else {
    223                 update_site_option( 'recently_activated', $deactivated + (array) get_site_option( 'recently_activated' ) );
     223                update_network_option( 'recently_activated', $deactivated + (array) get_network_option( 'recently_activated' ) );
    224224            }
    225225
     
    383383                update_option( 'recently_activated', array() );
    384384            } else {
    385                 update_site_option( 'recently_activated', array() );
     385                update_network_option( 'recently_activated', array() );
    386386            }
    387387            break;
Note: See TracChangeset for help on using the changeset viewer.