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/wordpres.../src/config/migratio...
File: 20200428194858_ExpandIndexableColumnLengths.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Yoast\WP\SEO\Config\Migrations;
[2] Fix | Delete
[3] Fix | Delete
use Yoast\WP\Lib\Migrations\Migration;
[4] Fix | Delete
use Yoast\WP\Lib\Model;
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Class ExpandIndexableColumnLengths.
[8] Fix | Delete
*/
[9] Fix | Delete
class ExpandIndexableColumnLengths extends Migration {
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* The plugin this migration belongs to.
[13] Fix | Delete
*
[14] Fix | Delete
* @var string
[15] Fix | Delete
*/
[16] Fix | Delete
public static $plugin = 'free';
[17] Fix | Delete
[18] Fix | Delete
/**
[19] Fix | Delete
* Migration up.
[20] Fix | Delete
*
[21] Fix | Delete
* @return void
[22] Fix | Delete
*/
[23] Fix | Delete
public function up() {
[24] Fix | Delete
$this->change_column( $this->get_table_name(), 'title', 'text', [ 'null' => true ] );
[25] Fix | Delete
$this->change_column( $this->get_table_name(), 'open_graph_title', 'text', [ 'null' => true ] );
[26] Fix | Delete
$this->change_column( $this->get_table_name(), 'twitter_title', 'text', [ 'null' => true ] );
[27] Fix | Delete
$this->change_column( $this->get_table_name(), 'open_graph_image_source', 'text', [ 'null' => true ] );
[28] Fix | Delete
$this->change_column( $this->get_table_name(), 'twitter_image_source', 'text', [ 'null' => true ] );
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
/**
[32] Fix | Delete
* Migration down.
[33] Fix | Delete
*
[34] Fix | Delete
* @return void
[35] Fix | Delete
*/
[36] Fix | Delete
public function down() {
[37] Fix | Delete
$attr_limit_191 = [
[38] Fix | Delete
'null' => true,
[39] Fix | Delete
'limit' => 191,
[40] Fix | Delete
];
[41] Fix | Delete
[42] Fix | Delete
$this->change_column(
[43] Fix | Delete
$this->get_table_name(),
[44] Fix | Delete
'title',
[45] Fix | Delete
'string',
[46] Fix | Delete
$attr_limit_191
[47] Fix | Delete
);
[48] Fix | Delete
$this->change_column(
[49] Fix | Delete
$this->get_table_name(),
[50] Fix | Delete
'opengraph_title',
[51] Fix | Delete
'string',
[52] Fix | Delete
$attr_limit_191
[53] Fix | Delete
);
[54] Fix | Delete
$this->change_column(
[55] Fix | Delete
$this->get_table_name(),
[56] Fix | Delete
'twitter_title',
[57] Fix | Delete
'string',
[58] Fix | Delete
$attr_limit_191
[59] Fix | Delete
);
[60] Fix | Delete
$this->change_column(
[61] Fix | Delete
$this->get_table_name(),
[62] Fix | Delete
'open_graph_image_source',
[63] Fix | Delete
'string',
[64] Fix | Delete
$attr_limit_191
[65] Fix | Delete
);
[66] Fix | Delete
$this->change_column(
[67] Fix | Delete
$this->get_table_name(),
[68] Fix | Delete
'twitter_image_source',
[69] Fix | Delete
'string',
[70] Fix | Delete
$attr_limit_191
[71] Fix | Delete
);
[72] Fix | Delete
}
[73] Fix | Delete
[74] Fix | Delete
/**
[75] Fix | Delete
* Retrieves the table name to use for storing indexables.
[76] Fix | Delete
*
[77] Fix | Delete
* @return string The table name to use.
[78] Fix | Delete
*/
[79] Fix | Delete
protected function get_table_name() {
[80] Fix | Delete
return Model::get_table_name( 'Indexable' );
[81] Fix | Delete
}
[82] Fix | Delete
}
[83] Fix | Delete
[84] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function