WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана


DeleteDuplicateIndexables::up() public Yoast 1.0

Migration up.

{} Это метод класса: DeleteDuplicateIndexables{}

Хуков нет.


Null. Ничего.


$DeleteDuplicateIndexables = new DeleteDuplicateIndexables();

Код DeleteDuplicateIndexables::up() Yoast 15.1.1

public function up() {
	$table_name = $this->get_table_name();

	 * Deletes duplicate indexables that have the same object_id and object_type.
	 * The rows with a higher ID are deleted as those should be unused and could be outdated.
	$this->query( 'DELETE wyi FROM ' . $table_name . ' wyi INNER JOIN ' . $table_name . ' wyi2 WHERE wyi2.object_id = wyi.object_id AND wyi2.object_type = wyi.object_type AND wyi2.id < wyi.id;' );