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/flow-flo.../includes/db/migratio...
File: FFMigration_2_1.php
<?php namespace flow\db\migrations;
[0] Fix | Delete
use la\core\db\migrations\ILADBMigration;
[1] Fix | Delete
[2] Fix | Delete
if ( ! defined( 'WPINC' ) ) die;
[3] Fix | Delete
/**
[4] Fix | Delete
* Flow-Flow.
[5] Fix | Delete
*
[6] Fix | Delete
* @package FlowFlow
[7] Fix | Delete
* @author Looks Awesome <email@looks-awesome.com>
[8] Fix | Delete
*
[9] Fix | Delete
* @link http://looks-awesome.com
[10] Fix | Delete
* @copyright Looks Awesome
[11] Fix | Delete
*/
[12] Fix | Delete
class FFMigration_2_1 implements ILADBMigration{
[13] Fix | Delete
[14] Fix | Delete
public function version() {
[15] Fix | Delete
return '2.1';
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
public function execute($conn, $manager) {
[19] Fix | Delete
$options = $manager->getOption('options', true);
[20] Fix | Delete
if ($options === false) $options = [];
[21] Fix | Delete
unset($options['last_submit']);
[22] Fix | Delete
unset($options['feeds_changed']);
[23] Fix | Delete
$options = $this->setDefaultValueIfNeeded($options);
[24] Fix | Delete
$manager->setOption('options', $options, true);
[25] Fix | Delete
[26] Fix | Delete
$options = $manager->getOption('fb_auth_options', true);
[27] Fix | Delete
if ($options === false) $options = [];
[28] Fix | Delete
if (!isset($options['facebook_access_token'])) $options['facebook_access_token'] = '';
[29] Fix | Delete
if (!isset($options['facebook_app_id'])) $options['facebook_app_id'] = '';
[30] Fix | Delete
if (!isset($options['facebook_app_secret'])) $options['facebook_app_secret'] = '';
[31] Fix | Delete
if (!isset($options['facebook_app_secret'])) $options['facebook_use_own_app'] = '';
[32] Fix | Delete
$manager->setOption('fb_auth_options', $options, true);
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
private function setDefaultValueIfNeeded($options) {
[36] Fix | Delete
if (!isset($options['oauth_access_token'])) $options['oauth_access_token'] = '';
[37] Fix | Delete
if (!isset($options['oauth_access_token_secret'])) $options['oauth_access_token_secret'] = '';
[38] Fix | Delete
if (!isset($options['consumer_secret'])) $options['consumer_secret'] = '';
[39] Fix | Delete
if (!isset($options['consumer_key'])) $options['consumer_key'] = '';
[40] Fix | Delete
if (!isset($options['instagram_access_token'])) $options['instagram_access_token'] = '';
[41] Fix | Delete
if (!isset($options['google_api_key'])) $options['google_api_key'] = '';
[42] Fix | Delete
if (!isset($options['foursquare_access_token'])) $options['foursquare_access_token'] = '';
[43] Fix | Delete
if (!isset($options['foursquare_client_id'])) $options['foursquare_client_id'] = '';
[44] Fix | Delete
if (!isset($options['foursquare_client_secret'])) $options['foursquare_client_secret'] = '';
[45] Fix | Delete
if (!isset($options['general-settings-date-format'])) $options['general-settings-date-format'] = 'agoStyleDate';
[46] Fix | Delete
if (!isset($options['general-settings-open-links-in-new-window'])) $options['general-settings-open-links-in-new-window'] = 'nope';
[47] Fix | Delete
if (!isset($options['general-settings-disable-proxy-server'])) $options['general-settings-disable-proxy-server'] = 'nope';
[48] Fix | Delete
if (!isset($options['general-settings-disable-follow-location'])) $options['general-settings-disable-follow-location'] = 'nope';
[49] Fix | Delete
// if (!array_key_exists('general-settings-seo-mode', $options)) $options['general-settings-seo-mode'] = 'yep';
[50] Fix | Delete
return $options;
[51] Fix | Delete
}
[52] Fix | Delete
}
[53] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function