Changeset 34778 for trunk/src/wp-admin/includes/plugin.php
- Timestamp:
- 10/02/2015 07:07:23 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r34566 r34778 467 467 return false; 468 468 469 $plugins = get_ site_option( 'active_sitewide_plugins');469 $plugins = get_network_option( 'active_sitewide_plugins' ); 470 470 if ( isset($plugins[$plugin]) ) 471 471 return true; … … 525 525 if ( is_multisite() && ( $network_wide || is_network_only_plugin($plugin) ) ) { 526 526 $network_wide = true; 527 $current = get_ site_option( 'active_sitewide_plugins', array() );527 $current = get_network_option( 'active_sitewide_plugins', array() ); 528 528 $_GET['networkwide'] = 1; // Back compat for plugins looking for this value. 529 529 } else { … … 578 578 579 579 if ( $network_wide ) { 580 $current = get_ site_option( 'active_sitewide_plugins', array() );580 $current = get_network_option( 'active_sitewide_plugins', array() ); 581 581 $current[$plugin] = time(); 582 update_ site_option( 'active_sitewide_plugins', $current );582 update_network_option( 'active_sitewide_plugins', $current ); 583 583 } else { 584 584 $current = get_option( 'active_plugins', array() ); … … 629 629 function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) { 630 630 if ( is_multisite() ) 631 $network_current = get_ site_option( 'active_sitewide_plugins', array() );631 $network_current = get_network_option( 'active_sitewide_plugins', array() ); 632 632 $current = get_option( 'active_plugins', array() ); 633 633 $do_blog = $do_network = false; … … 710 710 update_option('active_plugins', $current); 711 711 if ( $do_network ) 712 update_ site_option( 'active_sitewide_plugins', $network_current );712 update_network_option( 'active_sitewide_plugins', $network_current ); 713 713 } 714 714 … … 882 882 883 883 if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) { 884 $network_plugins = (array) get_ site_option( 'active_sitewide_plugins', array() );884 $network_plugins = (array) get_network_option( 'active_sitewide_plugins', array() ); 885 885 $plugins = array_merge( $plugins, array_keys( $network_plugins ) ); 886 886 }
Note: See TracChangeset
for help on using the changeset viewer.