Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/sitepres.../inc
File: not-compatible-plugins.php
<?php
[0] Fix | Delete
$icl_ncp_plugins = array(
[1] Fix | Delete
'absolute-links/absolute-links-plugin.php',
[2] Fix | Delete
'cms-navigation/CMS-Navigation.php'
[3] Fix | Delete
);
[4] Fix | Delete
$active_plugins = get_option('active_plugins');
[5] Fix | Delete
[6] Fix | Delete
$icl_ncp_plugins = array_intersect($icl_ncp_plugins, $active_plugins);
[7] Fix | Delete
[8] Fix | Delete
if(!empty($icl_ncp_plugins)){
[9] Fix | Delete
$icl_sitepress_disabled = true;
[10] Fix | Delete
icl_suppress_activation();
[11] Fix | Delete
[12] Fix | Delete
[13] Fix | Delete
add_action('admin_notices', 'icl_incomp_plugins_warn');
[14] Fix | Delete
function icl_incomp_plugins_warn() {
[15] Fix | Delete
global $icl_ncp_plugins;
[16] Fix | Delete
echo '<div class="error"><ul><li><strong>';
[17] Fix | Delete
esc_html_e( 'WPML cannot be activated together with these older plugins:', 'sitepress' );
[18] Fix | Delete
echo '<ul style="list-style:disc;margin:20px;">';
[19] Fix | Delete
foreach ( $icl_ncp_plugins as $incp ) {
[20] Fix | Delete
echo '<li>' . esc_html( $incp ) . '</li>';
[21] Fix | Delete
}
[22] Fix | Delete
echo '</ul>';
[23] Fix | Delete
esc_html_e( 'WPML will be deactivated', 'sitepress' );
[24] Fix | Delete
echo '</strong></li></ul></div>';
[25] Fix | Delete
}
[26] Fix | Delete
}else{
[27] Fix | Delete
$icl_sitepress_disabled = false;
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
$filtered_page = filter_input( INPUT_GET, 'page', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE);
[31] Fix | Delete
if( 0 === strcmp( $filtered_page, WPML_PLUGIN_FOLDER . '/menu/troubleshooting.php' ) || isset($pagenow) && $pagenow=='index.php'){
[32] Fix | Delete
$icl_ncp_plugins2 = array(
[33] Fix | Delete
'wp-no-category-base/no-category-base.php'
[34] Fix | Delete
);
[35] Fix | Delete
$active_plugins = get_option('active_plugins');
[36] Fix | Delete
$icl_ncp_plugins2 = array_intersect($icl_ncp_plugins2, $active_plugins);
[37] Fix | Delete
if(!empty($icl_ncp_plugins2)){
[38] Fix | Delete
if( 0 === strcmp( $filtered_page, WPML_PLUGIN_FOLDER . '/menu/troubleshooting.php' ) ){
[39] Fix | Delete
add_action('admin_notices', 'icl_incomp_plugins_warn2');
[40] Fix | Delete
function icl_incomp_plugins_warn2() {
[41] Fix | Delete
global $icl_ncp_plugins2;
[42] Fix | Delete
echo '<a name="icl_inc_plugins_notice"></a><div class="error" style="padding:10px;">';
[43] Fix | Delete
esc_html_e( 'These plugins are known to have compatibiliy issues with WPML:', 'sitepress' );
[44] Fix | Delete
echo '<ul style="list-style:disc;margin-left:20px;">';
[45] Fix | Delete
foreach ( $icl_ncp_plugins2 as $incp ) {
[46] Fix | Delete
echo '<li>' . esc_html( $incp ) . '</li>';
[47] Fix | Delete
}
[48] Fix | Delete
echo '</ul>';
[49] Fix | Delete
echo '</div>';
[50] Fix | Delete
}
[51] Fix | Delete
}
[52] Fix | Delete
}
[53] Fix | Delete
}
[54] Fix | Delete
[55] Fix | Delete
[56] Fix | Delete
// WCML versions before 3.8 are not fully compatible with WPML versions after 3.4
[57] Fix | Delete
add_action('admin_head', 'wpml_wcml_3_8_is_required');
[58] Fix | Delete
function wpml_wcml_3_8_is_required(){
[59] Fix | Delete
[60] Fix | Delete
if( defined('WCML_VERSION') ){
[61] Fix | Delete
[62] Fix | Delete
$message_id = 'icl_wcml_3_8_is_required';
[63] Fix | Delete
[64] Fix | Delete
if ( version_compare( WCML_VERSION, '3.8', '<' ) ) {
[65] Fix | Delete
$message = array(
[66] Fix | Delete
'id' => $message_id,
[67] Fix | Delete
'type' => 'icl-admin-message-warning',
[68] Fix | Delete
'limit_to_page' => 'wpml-wcml',
[69] Fix | Delete
'admin_notice' => true,
[70] Fix | Delete
'classes' => array( 'error' ),
[71] Fix | Delete
'text' => sprintf( __( "%sIMPORTANT:%s You are using a version of WooCommerce Multilingual that is not fully compatible with the current WPML version. The %sproducts translation editor has been deactivated%s for this reason.%sPlease upgrade to %sWooCommerce Multilingual 3.8%s to restore the translation editor for products and use all the other functions.", 'sitepress' ),
[72] Fix | Delete
'<strong>', '</strong>', '<strong>', '</strong>', '<br /><br />', '<strong><a href="https://wpml.org/?p=867248">', '</a></strong>' )
[73] Fix | Delete
);
[74] Fix | Delete
ICL_AdminNotifier::add_message( $message );
[75] Fix | Delete
[76] Fix | Delete
?>
[77] Fix | Delete
[78] Fix | Delete
<?php if( isset( $_GET['page'] ) && $_GET['page'] == 'wpml-wcml'): ?>
[79] Fix | Delete
<script>
[80] Fix | Delete
jQuery(document).ready(function () {
[81] Fix | Delete
jQuery('.wcml_details').unbind('click');
[82] Fix | Delete
jQuery('.wcml_products_translation input[type=text], .wcml_products_translation textarea, .wcml_products_translation button').attr('disabled', 'disabled');
[83] Fix | Delete
jQuery('.wcml_products a.wcml_details').css('text-decoration', 'line-through');
[84] Fix | Delete
jQuery('.wcml_products').on('click', 'a.wcml_details', function () {
[85] Fix | Delete
location.href = '#adminmenumain';
[86] Fix | Delete
jQuery('#icl-id-icl_wcml_3_8_is_required').fadeIn(100).fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100);
[87] Fix | Delete
return false;
[88] Fix | Delete
})
[89] Fix | Delete
})
[90] Fix | Delete
</script>
[91] Fix | Delete
<?php endif; ?>
[92] Fix | Delete
[93] Fix | Delete
<?php
[94] Fix | Delete
[95] Fix | Delete
} else {
[96] Fix | Delete
[97] Fix | Delete
ICL_AdminNotifier::remove_message( $message_id );
[98] Fix | Delete
[99] Fix | Delete
}
[100] Fix | Delete
[101] Fix | Delete
}
[102] Fix | Delete
}
[103] Fix | Delete
[104] Fix | Delete
[105] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function