: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Yoast\WP\SEO\Config\Migrations;
use Yoast\WP\Lib\Migrations\Migration;
use Yoast\WP\SEO\WordPress\Wrapper;
* Class AddHasAncestorsColumn.
class AddHasAncestorsColumn extends Migration {
* The plugin this migration belongs to.
public static $plugin = 'free';
Model::get_table_name( 'Indexable' ),
Wrapper::get_wpdb()->query(
UPDATE ' . Model::get_table_name( 'Indexable' ) . '
WHERE id IN ( SELECT indexable_id FROM ' . Model::get_table_name( 'Indexable_Hierarchy' ) . ' )
$this->remove_column( Model::get_table_name( 'Indexable' ), 'has_ancestors' );