Changeset 34912 for trunk/src/wp-admin/includes/plugin.php
- Timestamp:
- 10/07/2015 05:11:01 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r34825 r34912 463 463 return false; 464 464 465 $plugins = get_ network_option( 'active_sitewide_plugins');465 $plugins = get_site_option( 'active_sitewide_plugins'); 466 466 if ( isset($plugins[$plugin]) ) 467 467 return true; … … 521 521 if ( is_multisite() && ( $network_wide || is_network_only_plugin($plugin) ) ) { 522 522 $network_wide = true; 523 $current = get_ network_option( 'active_sitewide_plugins', array() );523 $current = get_site_option( 'active_sitewide_plugins', array() ); 524 524 $_GET['networkwide'] = 1; // Back compat for plugins looking for this value. 525 525 } else { … … 574 574 575 575 if ( $network_wide ) { 576 $current = get_ network_option( 'active_sitewide_plugins', array() );576 $current = get_site_option( 'active_sitewide_plugins', array() ); 577 577 $current[$plugin] = time(); 578 update_ network_option( 'active_sitewide_plugins', $current );578 update_site_option( 'active_sitewide_plugins', $current ); 579 579 } else { 580 580 $current = get_option( 'active_plugins', array() ); … … 625 625 function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) { 626 626 if ( is_multisite() ) 627 $network_current = get_ network_option( 'active_sitewide_plugins', array() );627 $network_current = get_site_option( 'active_sitewide_plugins', array() ); 628 628 $current = get_option( 'active_plugins', array() ); 629 629 $do_blog = $do_network = false; … … 706 706 update_option('active_plugins', $current); 707 707 if ( $do_network ) 708 update_ network_option( 'active_sitewide_plugins', $network_current );708 update_site_option( 'active_sitewide_plugins', $network_current ); 709 709 } 710 710 … … 878 878 879 879 if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) { 880 $network_plugins = (array) get_ network_option( 'active_sitewide_plugins', array() );880 $network_plugins = (array) get_site_option( 'active_sitewide_plugins', array() ); 881 881 $plugins = array_merge( $plugins, array_keys( $network_plugins ) ); 882 882 }
Note: See TracChangeset
for help on using the changeset viewer.