XPressME Integration Kit

Trac


Ignore:
Timestamp:
Aug 9, 2012, 3:37:03 PM (12 years ago)
Author:
toemon
Message:

XOOPSモードでBuddypressプラグインを有効化するとブランク画面になるバグ修正 fixes #416
bug(if changed on WP Xpressme panel the WP mode to Xoops mode, the Buddypress goes down) Fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Ver2.4/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_common_functions.php

    r658 r812  
    435435        return file_exists($str); 
    436436} 
     437 
     438function is_buddypress_active(){ 
     439        $active_plugins = get_option('active_plugins'); 
     440        foreach($active_plugins as $active_plugin_path){ 
     441                if (strpos($active_plugin_path,'buddypress')!==false) return true; 
     442                if (strpos($active_plugin_path,'bp-loader.php')!==false) return true; 
     443        } 
     444        return false; 
     445} 
     446 
    437447?> 
Note: See TracChangeset for help on using the changeset viewer.