- ';
echo __('WPML cannot be activated together with these older plugins:', 'sitepress');
echo '
';
foreach($icl_ncp_plugins as $incp){
echo '- '.$incp.'
';
}
echo '
';
echo __('WPML will be deactivated', 'sitepress');
echo '
';
}
}else{
$icl_sitepress_disabled = false;
}
$filtered_page = filter_input( INPUT_GET, 'page', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE);
if( 0 === strcmp( $filtered_page, ICL_PLUGIN_FOLDER . '/menu/troubleshooting.php' ) || isset($pagenow) && $pagenow=='index.php'){
$icl_ncp_plugins2 = array(
'wp-no-category-base/no-category-base.php'
);
$active_plugins = get_option('active_plugins');
$icl_ncp_plugins2 = array_intersect($icl_ncp_plugins2, $active_plugins);
if(!empty($icl_ncp_plugins2)){
if( 0 === strcmp( $filtered_page, ICL_PLUGIN_FOLDER . '/menu/troubleshooting.php' ) ){
add_action('admin_notices', 'icl_incomp_plugins_warn2');
function icl_incomp_plugins_warn2(){
global $icl_ncp_plugins2;
echo '';
echo __('These plugins are known to have compatibiliy issues with WPML:', 'sitepress');
echo '
';
foreach($icl_ncp_plugins2 as $incp){
echo '- '.$incp.'
';
}
echo '
';
echo '
';
}
}else{
add_action('icl_dashboard_widget_content_top', 'icl_incomp_plugins_warn_dashboard', 1, 0);
function icl_incomp_plugins_warn_dashboard(){
echo '';
}
}
}
}