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/blogvaul.../callback/wings
File: brand.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if (!defined('ABSPATH')) exit;
[2] Fix | Delete
if (!class_exists('BVBrandCallback')) :
[3] Fix | Delete
[4] Fix | Delete
class BVBrandCallback extends BVCallbackBase {
[5] Fix | Delete
public $settings;
[6] Fix | Delete
[7] Fix | Delete
const BRAND_WING_VERSION = 1.1;
[8] Fix | Delete
[9] Fix | Delete
public function __construct($callback_handler) {
[10] Fix | Delete
$this->settings = $callback_handler->settings;
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
public function process($request) {
[14] Fix | Delete
$bvinfo = new BVInfo($this->settings);
[15] Fix | Delete
$option_name = $bvinfo->brand_option;
[16] Fix | Delete
$whitelabel_infos = $bvinfo->getPluginsWhitelabelInfos();
[17] Fix | Delete
$params = $request->params;
[18] Fix | Delete
switch($request->method) {
[19] Fix | Delete
case 'setbrand':
[20] Fix | Delete
foreach ($params as $slug => $whitelabel_info) {
[21] Fix | Delete
if (isset($slug) && is_array($whitelabel_info)) {
[22] Fix | Delete
$whitelabel_infos[$slug] = $whitelabel_info;
[23] Fix | Delete
}
[24] Fix | Delete
}
[25] Fix | Delete
$this->settings->updateOption($option_name, $whitelabel_infos);
[26] Fix | Delete
$resp = array("setbrand" => $this->settings->getOption($option_name));
[27] Fix | Delete
break;
[28] Fix | Delete
case 'rmbrand':
[29] Fix | Delete
foreach ($params["delete_keys"] as $slug) {
[30] Fix | Delete
unset($whitelabel_infos[$slug]);
[31] Fix | Delete
}
[32] Fix | Delete
$this->settings->updateOption($option_name, $whitelabel_infos);
[33] Fix | Delete
$resp = array("rmbrand" => true);
[34] Fix | Delete
break;
[35] Fix | Delete
case 'rmallbrands':
[36] Fix | Delete
$this->settings->deleteOption($option_name);
[37] Fix | Delete
$resp = array("rmallbrands" => !$this->settings->getOption($option_name));
[38] Fix | Delete
break;
[39] Fix | Delete
default:
[40] Fix | Delete
$resp = false;
[41] Fix | Delete
}
[42] Fix | Delete
return $resp;
[43] Fix | Delete
}
[44] Fix | Delete
}
[45] Fix | Delete
endif;
[46] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function