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.../public_h.../wp-conte.../plugins/wordpres.../admin/statisti...
File: class-statistics-integration.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WPSEO plugin file.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WPSEO\Admin\Statistics
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Class WPSEO_Statistic_Integration.
[8] Fix | Delete
*/
[9] Fix | Delete
class WPSEO_Statistic_Integration implements WPSEO_WordPress_Integration {
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* Adds hooks to clear the cache.
[13] Fix | Delete
*
[14] Fix | Delete
* @return void
[15] Fix | Delete
*/
[16] Fix | Delete
public function register_hooks() {
[17] Fix | Delete
add_action( 'wp_insert_post', [ $this, 'clear_cache' ] );
[18] Fix | Delete
add_action( 'delete_post', [ $this, 'clear_cache' ] );
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
/**
[22] Fix | Delete
* Clears the dashboard widget items cache.
[23] Fix | Delete
*
[24] Fix | Delete
* @return void
[25] Fix | Delete
*/
[26] Fix | Delete
public function clear_cache() {
[27] Fix | Delete
// Bail if this is a multisite installation and the site has been switched.
[28] Fix | Delete
if ( is_multisite() && ms_is_switched() ) {
[29] Fix | Delete
return;
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
delete_transient( WPSEO_Statistics_Service::CACHE_TRANSIENT_KEY );
[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