示例#1
0
 /**
  * Deactivate All BUP Plugins
  * 
  * @return NULL Check if it's site or multisite and decativate it.
  */
 public static function deletePlugin()
 {
     installerBup::delete();
 }
示例#2
0
文件: utils.php 项目: VSVS/vs_wp_4.0
 /**
  * Deactivate All BUP Plugins
  * 
  * @return NULL Check if it's site or multisite and decativate it.
  */
 public function deactivatePlugin()
 {
     /*global $wpdb;
       if (function_exists('is_multisite') && is_multisite()) {
           $orig_id = $wpdb->blogid;
           $blog_id = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
           foreach ($blog_id as $id) {
               if (switch_to_blog($id)) {
                   installerBup::delete();
               } 
           }
           switch_to_blog($orig_id);
           return;
       } else {
           installerBup::delete();
       }*/
     installerBup::delete();
 }