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/clone/wp-conte.../plugins/wp-smush.../core
File: class-modules.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Class Modules.
[2] Fix | Delete
*
[3] Fix | Delete
* Used in Core to type hint the $mod variable. For example, this way any calls to
[4] Fix | Delete
* \Smush\WP_Smush::get_instance()->core()->mod->settings will be typehinted as a call to Settings module.
[5] Fix | Delete
*
[6] Fix | Delete
* @package Smush\Core
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
namespace Smush\Core;
[10] Fix | Delete
[11] Fix | Delete
use Smush\Core\Backups\Backups_Controller;
[12] Fix | Delete
use Smush\Core\CDN\CDN_Controller;
[13] Fix | Delete
use Smush\Core\CDN\CDN_Settings_Ui_Controller;
[14] Fix | Delete
use Smush\Core\CDN\CDN_Srcset_Controller;
[15] Fix | Delete
use Smush\Core\Lazy_Load\Lazy_Load_Controller;
[16] Fix | Delete
use Smush\Core\Media\Media_Item_Controller;
[17] Fix | Delete
use Smush\Core\Media_Library\Ajax_Media_Library_Scanner;
[18] Fix | Delete
use Smush\Core\Media_Library\Background_Media_Library_Scanner;
[19] Fix | Delete
use Smush\Core\Media_Library\Media_Library_Last_Process;
[20] Fix | Delete
use Smush\Core\Media_Library\Media_Library_Slice_Data_Fetcher;
[21] Fix | Delete
use Smush\Core\Media_Library\Media_Library_Watcher;
[22] Fix | Delete
use Smush\Core\Modules\Background\Background_Pre_Flight_Controller;
[23] Fix | Delete
use Smush\Core\Modules\CDN;
[24] Fix | Delete
use Smush\Core\Photon\Photon_Controller;
[25] Fix | Delete
use Smush\Core\Png2Jpg\Png2Jpg_Controller;
[26] Fix | Delete
use Smush\Core\Resize\Resize_Controller;
[27] Fix | Delete
use Smush\Core\S3\S3_Controller;
[28] Fix | Delete
use Smush\Core\Smush\Smush_Controller;
[29] Fix | Delete
use Smush\Core\Stats\Global_Stats_Controller;
[30] Fix | Delete
use Smush\Core\Transform\Transformation_Controller;
[31] Fix | Delete
use Smush\Core\Webp\Webp_Controller;
[32] Fix | Delete
[33] Fix | Delete
if ( ! defined( 'WPINC' ) ) {
[34] Fix | Delete
die;
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
/**
[38] Fix | Delete
* Class Modules
[39] Fix | Delete
*/
[40] Fix | Delete
class Modules {
[41] Fix | Delete
[42] Fix | Delete
/**
[43] Fix | Delete
* Directory Smush module.
[44] Fix | Delete
*
[45] Fix | Delete
* @var Modules\Dir
[46] Fix | Delete
*/
[47] Fix | Delete
public $dir;
[48] Fix | Delete
[49] Fix | Delete
/**
[50] Fix | Delete
* Main Smush module.
[51] Fix | Delete
*
[52] Fix | Delete
* @var Modules\Smush
[53] Fix | Delete
*/
[54] Fix | Delete
public $smush;
[55] Fix | Delete
[56] Fix | Delete
/**
[57] Fix | Delete
* Backup module.
[58] Fix | Delete
*
[59] Fix | Delete
* @var Modules\Backup
[60] Fix | Delete
*/
[61] Fix | Delete
public $backup;
[62] Fix | Delete
[63] Fix | Delete
/**
[64] Fix | Delete
* PNG 2 JPG module.
[65] Fix | Delete
*
[66] Fix | Delete
* @var Modules\Png2jpg
[67] Fix | Delete
*/
[68] Fix | Delete
public $png2jpg;
[69] Fix | Delete
[70] Fix | Delete
/**
[71] Fix | Delete
* Resize module.
[72] Fix | Delete
*
[73] Fix | Delete
* @var Modules\Resize
[74] Fix | Delete
*/
[75] Fix | Delete
public $resize;
[76] Fix | Delete
[77] Fix | Delete
/**
[78] Fix | Delete
* CDN module.
[79] Fix | Delete
*
[80] Fix | Delete
* @var CDN
[81] Fix | Delete
*/
[82] Fix | Delete
public $cdn;
[83] Fix | Delete
[84] Fix | Delete
/**
[85] Fix | Delete
* Image lazy load module.
[86] Fix | Delete
*
[87] Fix | Delete
* @since 3.2
[88] Fix | Delete
*
[89] Fix | Delete
* @var \Smush\Core\Modules\Lazy
[90] Fix | Delete
*/
[91] Fix | Delete
public $lazy;
[92] Fix | Delete
[93] Fix | Delete
/**
[94] Fix | Delete
* Webp module.
[95] Fix | Delete
*
[96] Fix | Delete
* @var Modules\Webp
[97] Fix | Delete
*/
[98] Fix | Delete
public $webp;
[99] Fix | Delete
[100] Fix | Delete
/**
[101] Fix | Delete
* Cache background optimization controller - Bulk_Smush_Controller
[102] Fix | Delete
*
[103] Fix | Delete
* @var Modules\Bulk\Background_Bulk_Smush
[104] Fix | Delete
*/
[105] Fix | Delete
public $bg_optimization;
[106] Fix | Delete
[107] Fix | Delete
/**
[108] Fix | Delete
* @var Modules\Product_Analytics_Controller
[109] Fix | Delete
*/
[110] Fix | Delete
public $product_analytics;
[111] Fix | Delete
[112] Fix | Delete
public $backward_compatibility;
[113] Fix | Delete
[114] Fix | Delete
/**
[115] Fix | Delete
* Modules constructor.
[116] Fix | Delete
*/
[117] Fix | Delete
public function __construct() {
[118] Fix | Delete
new Deprecated_Hooks();// Handle deprecated hooks.
[119] Fix | Delete
[120] Fix | Delete
new Api\Hub(); // Init hub endpoints.
[121] Fix | Delete
[122] Fix | Delete
new Modules\Resize_Detection();
[123] Fix | Delete
new Rest();
[124] Fix | Delete
[125] Fix | Delete
if ( is_admin() ) {
[126] Fix | Delete
$this->dir = new Modules\Dir();
[127] Fix | Delete
}
[128] Fix | Delete
[129] Fix | Delete
$this->smush = new Modules\Smush();
[130] Fix | Delete
$this->backup = new Modules\Backup();
[131] Fix | Delete
$this->png2jpg = new Modules\Png2jpg();
[132] Fix | Delete
$this->resize = new Modules\Resize();
[133] Fix | Delete
[134] Fix | Delete
$transformation_controller = new Transformation_Controller();
[135] Fix | Delete
$transformation_controller->init();
[136] Fix | Delete
[137] Fix | Delete
$this->cdn = new CDN();
[138] Fix | Delete
[139] Fix | Delete
$cdn_srcset_controller = CDN_Srcset_Controller::get_instance();
[140] Fix | Delete
$cdn_srcset_controller->init();
[141] Fix | Delete
[142] Fix | Delete
$this->webp = new Modules\WebP();
[143] Fix | Delete
$this->lazy = new Modules\Lazy();
[144] Fix | Delete
$this->product_analytics = new Modules\Product_Analytics_Controller();
[145] Fix | Delete
[146] Fix | Delete
$this->bg_optimization = Modules\Bulk\Background_Bulk_Smush::get_instance();
[147] Fix | Delete
[148] Fix | Delete
$smush_controller = new Smush_Controller();
[149] Fix | Delete
$smush_controller->init();
[150] Fix | Delete
[151] Fix | Delete
$png2jpg_controller = Png2Jpg_Controller::get_instance();
[152] Fix | Delete
$png2jpg_controller->init();
[153] Fix | Delete
[154] Fix | Delete
$webp_controller = new Webp_Controller();
[155] Fix | Delete
$webp_controller->init();
[156] Fix | Delete
[157] Fix | Delete
$resize_controller = new Resize_Controller();
[158] Fix | Delete
$resize_controller->init();
[159] Fix | Delete
[160] Fix | Delete
$s3_controller = new S3_Controller();
[161] Fix | Delete
$s3_controller->init();
[162] Fix | Delete
[163] Fix | Delete
$backups_controller = new Backups_Controller();
[164] Fix | Delete
$backups_controller->init();
[165] Fix | Delete
[166] Fix | Delete
$library_scanner = new Ajax_Media_Library_Scanner();
[167] Fix | Delete
$library_scanner->init();
[168] Fix | Delete
[169] Fix | Delete
$background_lib_scanner = Background_Media_Library_Scanner::get_instance();
[170] Fix | Delete
$background_lib_scanner->init();
[171] Fix | Delete
[172] Fix | Delete
$media_library_watcher = new Media_Library_Watcher();
[173] Fix | Delete
$media_library_watcher->init();
[174] Fix | Delete
[175] Fix | Delete
$global_stats_controller = new Global_Stats_Controller();
[176] Fix | Delete
$global_stats_controller->init();
[177] Fix | Delete
[178] Fix | Delete
$plugin_settings_watcher = new Plugin_Settings_Watcher();
[179] Fix | Delete
$plugin_settings_watcher->init();
[180] Fix | Delete
[181] Fix | Delete
$animated_status_controller = new Animated_Status_Controller();
[182] Fix | Delete
$animated_status_controller->init();
[183] Fix | Delete
[184] Fix | Delete
$media_library_slice_data_fetcher = new Media_Library_Slice_Data_Fetcher( is_multisite(), get_current_blog_id() );
[185] Fix | Delete
$media_library_slice_data_fetcher->init();
[186] Fix | Delete
[187] Fix | Delete
$media_item_controller = new Media_Item_Controller();
[188] Fix | Delete
$media_item_controller->init();
[189] Fix | Delete
[190] Fix | Delete
$optimization_controller = new Optimization_Controller();
[191] Fix | Delete
$optimization_controller->init();
[192] Fix | Delete
[193] Fix | Delete
$photon_controller = new Photon_Controller();
[194] Fix | Delete
$photon_controller->init();
[195] Fix | Delete
[196] Fix | Delete
// CDN
[197] Fix | Delete
$cdn_controller = new CDN_Controller();
[198] Fix | Delete
$cdn_controller->init();
[199] Fix | Delete
[200] Fix | Delete
$cdn_settings_ui_controller = new CDN_Settings_Ui_Controller();
[201] Fix | Delete
$cdn_settings_ui_controller->init();
[202] Fix | Delete
[203] Fix | Delete
$cache_controller = new Cache_Controller();
[204] Fix | Delete
$cache_controller->init();
[205] Fix | Delete
[206] Fix | Delete
$lazy_load_controller = Lazy_Load_Controller::get_instance();
[207] Fix | Delete
$lazy_load_controller->init();
[208] Fix | Delete
[209] Fix | Delete
$background_health = Background_Pre_Flight_Controller::get_instance();
[210] Fix | Delete
$background_health->init();
[211] Fix | Delete
[212] Fix | Delete
$media_lib_last_process = Media_Library_Last_Process::get_instance();
[213] Fix | Delete
$media_lib_last_process->init();
[214] Fix | Delete
}
[215] Fix | Delete
[216] Fix | Delete
}
[217] Fix | Delete
[218] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function