Changeset 14348 for trunk/wp-admin/includes/class-wp-upgrader.php
- Timestamp:
- 05/02/2010 10:57:44 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/class-wp-upgrader.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-upgrader.php
r14173 r14348 987 987 var $plugin = ''; 988 988 var $plugin_active = false; 989 var $plugin_network_active = false; 989 990 990 991 function Plugin_Upgrader_Skin($args = array()) { … … 998 999 $this->plugin = $args['plugin']; 999 1000 1000 $this->plugin_active = is_plugin_active($this->plugin); 1001 $this->plugin_active = is_plugin_active( $this->plugin ); 1002 $this->plugin_network_active = is_plugin_active_for_network( $this->plugin ); 1001 1003 1002 1004 parent::__construct($args); … … 1007 1009 if ( !empty($this->plugin) && !is_wp_error($this->result) && $this->plugin_active ){ 1008 1010 show_message(__('Reactivating the plugin…')); 1009 echo '<iframe style="border:0;overflow:hidden" width="100%" height="170px" src="' . wp_nonce_url('update.php?action=activate-plugin& plugin=' . $this->plugin, 'activate-plugin_' . $this->plugin) .'"></iframe>';1011 echo '<iframe style="border:0;overflow:hidden" width="100%" height="170px" src="' . wp_nonce_url('update.php?action=activate-plugin&networkwide=' . $this->plugin_network_active . '&plugin=' . $this->plugin, 'activate-plugin_' . $this->plugin) .'"></iframe>'; 1010 1012 } 1011 1013
Note: See TracChangeset
for help on using the changeset viewer.