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_3_2.php
<?php namespace flow\db\migrations;
[0] Fix | Delete
[1] Fix | Delete
use la\core\db\LADDLUtils;
[2] Fix | Delete
use la\core\db\migrations\ILADBMigration;
[3] Fix | Delete
[4] Fix | Delete
if ( ! defined( 'WPINC' ) ) die;
[5] Fix | Delete
/**
[6] Fix | Delete
* FlowFlow.
[7] Fix | Delete
*
[8] Fix | Delete
* @package FlowFlow
[9] Fix | Delete
* @author Looks Awesome <email@looks-awesome.com>
[10] Fix | Delete
*
[11] Fix | Delete
* @link http://looks-awesome.com
[12] Fix | Delete
* @copyright Looks Awesome
[13] Fix | Delete
*/
[14] Fix | Delete
class FFMigration_3_2 implements ILADBMigration{
[15] Fix | Delete
public function version(){
[16] Fix | Delete
return '3.2';
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
public function execute($conn, $manager){
[20] Fix | Delete
LADDLUtils::addColumnIfNotExist($conn, $manager->posts_table_name, 'carousel_size', 'INT DEFAULT 0 NOT NULL');
[21] Fix | Delete
[22] Fix | Delete
if (!LADDLUtils::existTable($conn, $manager->post_media_table_name)){
[23] Fix | Delete
$sql = "CREATE TABLE ?n
[24] Fix | Delete
(
[25] Fix | Delete
`id` INT NOT NULL AUTO_INCREMENT,
[26] Fix | Delete
`feed_id` VARCHAR(20) NOT NULL,
[27] Fix | Delete
`post_id` VARCHAR(50) NOT NULL,
[28] Fix | Delete
`post_type` VARCHAR(10) NOT NULL,
[29] Fix | Delete
`media_url` TEXT,
[30] Fix | Delete
`media_width` INT,
[31] Fix | Delete
`media_height` INT,
[32] Fix | Delete
`media_type` VARCHAR(100),
[33] Fix | Delete
PRIMARY KEY (`id`)
[34] Fix | Delete
) ?p";
[35] Fix | Delete
$conn->query($sql, $manager->post_media_table_name, $this->charset());
[36] Fix | Delete
}
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
private function charset(){
[40] Fix | Delete
$charset = LADDLUtils::charset();
[41] Fix | Delete
if ( !empty( $charset ) ) {
[42] Fix | Delete
$charset = " CHARACTER SET {$charset}";
[43] Fix | Delete
}
[44] Fix | Delete
return $charset;
[45] Fix | Delete
}
[46] Fix | Delete
}
[47] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function