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.../src/integrat...
File: uninstall-integration.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Integrations;
[2] Fix | Delete
[3] Fix | Delete
use Yoast\WP\SEO\Conditionals\No_Conditionals;
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Class to manage the integration with the WP uninstall flow.
[7] Fix | Delete
*/
[8] Fix | Delete
class Uninstall_Integration implements Integration_Interface {
[9] Fix | Delete
[10] Fix | Delete
use No_Conditionals;
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* Initializes the integration.
[14] Fix | Delete
*
[15] Fix | Delete
* This is the place to register hooks and filters.
[16] Fix | Delete
*
[17] Fix | Delete
* @return void
[18] Fix | Delete
*/
[19] Fix | Delete
public function register_hooks() {
[20] Fix | Delete
\add_action( 'uninstall_' . \WPSEO_BASENAME, [ $this, 'wpseo_uninstall' ] );
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
/**
[24] Fix | Delete
* Performs all necessary actions that should happen upon plugin uninstall.
[25] Fix | Delete
*
[26] Fix | Delete
* @return void
[27] Fix | Delete
*/
[28] Fix | Delete
public function wpseo_uninstall() {
[29] Fix | Delete
$this->clear_import_statuses();
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
/**
[33] Fix | Delete
* Clears the persistent import statuses.
[34] Fix | Delete
*
[35] Fix | Delete
* @return void
[36] Fix | Delete
*/
[37] Fix | Delete
public function clear_import_statuses() {
[38] Fix | Delete
$yoast_options = \get_site_option( 'wpseo' );
[39] Fix | Delete
[40] Fix | Delete
if ( isset( $yoast_options['importing_completed'] ) ) {
[41] Fix | Delete
$yoast_options['importing_completed'] = [];
[42] Fix | Delete
[43] Fix | Delete
\update_site_option( 'wpseo', $yoast_options );
[44] Fix | Delete
}
[45] Fix | Delete
}
[46] Fix | Delete
}
[47] Fix | Delete
[48] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function