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/advanced.../modules/ad-block...
File: main.php
<?php //phpcs:disable PSR1.Files.SideEffects.FoundWithSymbols -- the sniff does not accept calling add_action and declaring the callback in the same file
[0] Fix | Delete
[1] Fix | Delete
// Only load if not already existing (maybe included from another plugin).
[2] Fix | Delete
if ( defined( 'ADVADS_AB_BASE_PATH' ) ) {
[3] Fix | Delete
return;
[4] Fix | Delete
}
[5] Fix | Delete
[6] Fix | Delete
// load basic path to the plugin
[7] Fix | Delete
define( 'ADVADS_AB_BASE_PATH', plugin_dir_path( __FILE__ ) );
[8] Fix | Delete
// general and global slug, e.g. to store options in WP, textdomain
[9] Fix | Delete
define( 'ADVADS_AB_SLUG', 'advanced-ads-ab-module' );
[10] Fix | Delete
[11] Fix | Delete
add_action( 'advanced-ads-plugin-loaded', 'advanced_ads_load_adblocker' );
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* Load ad blocker functionality.
[15] Fix | Delete
*/
[16] Fix | Delete
function advanced_ads_load_adblocker() {
[17] Fix | Delete
Advanced_Ads_Ad_Blocker::get_instance();
[18] Fix | Delete
[19] Fix | Delete
if ( is_admin() && ! wp_doing_ajax() ) {
[20] Fix | Delete
Advanced_Ads_Ad_Blocker_Admin::get_instance();
[21] Fix | Delete
}
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function