| Server IP : 216.238.66.20 / Your IP : 216.73.216.249 Web Server : nginx/1.30.4 System : Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/blushrubor.com/htdocs/wp-content/plugins/w3-total-cache/ |
Upload File : |
<?php
namespace W3TC;
class Extension_Wpml_Plugin {
private $_config;
function __construct() {
$this->_config = Dispatcher::config();
}
public function run() {
if ( Util_Environment::is_w3tc_pro( $this->_config ) ) {
add_filter( 'w3tc_url_to_docroot_filename',
array( $this, 'w3tc_url_to_docroot_filename' ) );
}
}
public function w3tc_url_to_docroot_filename( $data ) {
$home_url = $data['home_url'];
if ( substr( $data['url'], 0, strlen( $home_url ) ) != $home_url ) {
$data['home_url'] = get_option( 'home' );
}
return $data;
}
}
$p = new Extension_Wpml_Plugin();
$p->run();
if ( is_admin() ) {
$p = new Extension_Wpml_Plugin_Admin();
$p->run();
}