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/themify-.../themify/cache
File: advanced-cache.php
<?php
[0] Fix | Delete
[1] Fix | Delete
defined('ABSPATH') || exit;
[2] Fix | Delete
[3] Fix | Delete
/* DON`T MODIFY THIS FILE IT CAN BREAK ALL SITES. USE THEMIFY SETTINGS TO DISABLE IT */
[4] Fix | Delete
[5] Fix | Delete
/* Themify start */
[6] Fix | Delete
if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'GET' && !function_exists('themify_cache_loaded') && !empty($_SERVER['REQUEST_URI']) && empty(preg_grep('/wordpress_logged_in_/', array_keys($_COOKIE)))) {
[7] Fix | Delete
[8] Fix | Delete
if (!((defined('DOING_AJAX') && DOING_AJAX) || (defined('XMLRPC_REQUEST') && XMLRPC_REQUEST) || (defined('DOING_CRON') && DOING_CRON) || (defined('REST_REQUEST') && REST_REQUEST) || (defined('APP_REQUEST') && APP_REQUEST) || (defined('SHORTINIT') && SHORTINIT) || strpos($_SERVER['REQUEST_URI'], 'robots.txt') !== false || strpos($_SERVER['REQUEST_URI'], 'wp-admin') !== false || strpos($_SERVER['REQUEST_URI'], 'wp-login') !== false || strpos($_SERVER['REQUEST_URI'], 'wp-json') !== false)) {
[9] Fix | Delete
[10] Fix | Delete
function themify_cache_loaded() {
[11] Fix | Delete
$dir = rtrim(WP_CONTENT_DIR, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . 'tf_cache_config' . DIRECTORY_SEPARATOR . 'site';
[12] Fix | Delete
if (is_multisite()) {
[13] Fix | Delete
$dir .= '-' . get_current_blog_id();
[14] Fix | Delete
}
[15] Fix | Delete
$dir .= '.php';
[16] Fix | Delete
if (is_file($dir)) {
[17] Fix | Delete
include_once $dir;
[18] Fix | Delete
if (defined('TF_CACHE_FW') && TF_CACHE_FW && TF_CACHE_FW !== '#TF_CACHE_FW#') {
[19] Fix | Delete
$dir = rtrim(TF_CACHE_FW, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . 'class-themify-cache.php';
[20] Fix | Delete
if (is_file($dir)) {
[21] Fix | Delete
include_once $dir;
[22] Fix | Delete
TFCache::run();
[23] Fix | Delete
}
[24] Fix | Delete
}
[25] Fix | Delete
}
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
if (is_multisite()) {
[29] Fix | Delete
add_action('ms_loaded', 'themify_cache_loaded', 5);
[30] Fix | Delete
} else {
[31] Fix | Delete
add_action('init', 'themify_cache_loaded', 0);
[32] Fix | Delete
}
[33] Fix | Delete
}
[34] Fix | Delete
}
[35] Fix | Delete
/*Themify End*/
[36] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function