Changeset 812
- Timestamp:
- Aug 9, 2012, 3:37:03 PM (12 years ago)
- Location:
- branches/Ver2.4/xpressme_integration_kit/wp-content/plugins/xpressme
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver2.4/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_common_functions.php
r658 r812 435 435 return file_exists($str); 436 436 } 437 438 function 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 437 447 ?> -
branches/Ver2.4/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme.php
r797 r812 22 22 require_once dirname( __FILE__ ).'/include/functions_for_wp_old.php' ; 23 23 24 if (!is_wordpress_style() && ( !empty($xpress_config->theme_select) || $xpress_config->theme_select != 'use_wordpress_select') ){ 24 if (!is_wordpress_style() 25 && ( !empty($xpress_config->theme_select) || $xpress_config->theme_select != 'use_wordpress_select') 26 && !is_buddypress_active() 27 ){ 25 28 add_filter('stylesheet', 'xpress_Stylesheet'); 26 29 add_filter('template', 'xpress_ThemeTemplate');
Note: See TracChangeset
for help on using the changeset viewer.