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/wordpres.../admin/import
File: class-import-detector.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WPSEO plugin file.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WPSEO\Admin\Import\Plugins
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Class WPSEO_Import_Plugins_Detector.
[8] Fix | Delete
*
[9] Fix | Delete
* Class with functionality to detect whether we should import from another SEO plugin.
[10] Fix | Delete
*/
[11] Fix | Delete
class WPSEO_Import_Plugins_Detector {
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* Plugins we need to import from.
[15] Fix | Delete
*
[16] Fix | Delete
* @var array
[17] Fix | Delete
*/
[18] Fix | Delete
public $needs_import = [];
[19] Fix | Delete
[20] Fix | Delete
/**
[21] Fix | Delete
* Detects whether we need to import anything.
[22] Fix | Delete
*
[23] Fix | Delete
* @return void
[24] Fix | Delete
*/
[25] Fix | Delete
public function detect() {
[26] Fix | Delete
foreach ( WPSEO_Plugin_Importers::get() as $importer_class ) {
[27] Fix | Delete
$importer = new $importer_class();
[28] Fix | Delete
$detect = new WPSEO_Import_Plugin( $importer, 'detect' );
[29] Fix | Delete
if ( $detect->status->status ) {
[30] Fix | Delete
$this->needs_import[ $importer_class ] = $importer->get_plugin_name();
[31] Fix | Delete
}
[32] Fix | Delete
}
[33] Fix | Delete
}
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function