Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/litespee.../thirdpar...
File: wpml.cls.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* The Third Party integration with WPML.
[2] Fix | Delete
*
[3] Fix | Delete
* @since 2.9.4
[4] Fix | Delete
*/
[5] Fix | Delete
namespace LiteSpeed\Thirdparty;
[6] Fix | Delete
[7] Fix | Delete
defined('WPINC') || exit();
[8] Fix | Delete
[9] Fix | Delete
class WPML
[10] Fix | Delete
{
[11] Fix | Delete
public static function detect()
[12] Fix | Delete
{
[13] Fix | Delete
if (!defined('WPML_PLUGIN_BASENAME')) {
[14] Fix | Delete
return;
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
add_filter('litespeed_internal_domains', __CLASS__ . '::append_domains');
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
/**
[21] Fix | Delete
* Take language domains as internal domains
[22] Fix | Delete
*/
[23] Fix | Delete
public static function append_domains($domains)
[24] Fix | Delete
{
[25] Fix | Delete
$wpml_domains = apply_filters('wpml_setting', false, 'language_domains');
[26] Fix | Delete
if ($wpml_domains) {
[27] Fix | Delete
$domains = array_merge($domains, array_values($wpml_domains));
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
return $domains;
[31] Fix | Delete
}
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function