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: 20190529075038_WpYoastDropIndexableMetaTableIfExists.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 WpYoastDropIndexableMetaTableIfExists.
[8] Fix | Delete
*/
[9] Fix | Delete
class WpYoastDropIndexableMetaTableIfExists 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
$table_name = $this->get_table_name();
[25] Fix | Delete
[26] Fix | Delete
// This can be done safely as it executes a DROP IF EXISTS.
[27] Fix | Delete
$this->drop_table( $table_name );
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
/**
[31] Fix | Delete
* Migration down.
[32] Fix | Delete
*
[33] Fix | Delete
* @return void
[34] Fix | Delete
*/
[35] Fix | Delete
public function down() {
[36] Fix | Delete
// No down required. This specific table should never exist.
[37] Fix | Delete
}
[38] Fix | Delete
[39] Fix | Delete
/**
[40] Fix | Delete
* Retrieves the table name to use.
[41] Fix | Delete
*
[42] Fix | Delete
* @return string The table name to use.
[43] Fix | Delete
*/
[44] Fix | Delete
protected function get_table_name() {
[45] Fix | Delete
return Model::get_table_name( 'Indexable_Meta' );
[46] Fix | Delete
}
[47] Fix | Delete
}
[48] Fix | Delete
[49] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function