WPSEO_Upgrade::upgrade_1911()privateYoast 1.0

Performs the 19.11 upgrade routine.

Метод класса: WPSEO_Upgrade{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// private - только в коде основоного (родительского) класса
$result = $this->upgrade_1911();

Код WPSEO_Upgrade::upgrade_1911() Yoast 22.4

private function upgrade_1911() {
	add_action( 'shutdown', [ $this, 'remove_indexable_rows_for_non_public_post_types' ] );
	add_action( 'shutdown', [ $this, 'remove_indexable_rows_for_non_public_taxonomies' ] );
	$this->deduplicate_unindexed_indexable_rows();
	$this->remove_indexable_rows_for_disabled_authors_archive();
	if ( ! wp_next_scheduled( Cleanup_Integration::START_HOOK ) ) {
		wp_schedule_single_event( ( time() + ( MINUTE_IN_SECONDS * 5 ) ), Cleanup_Integration::START_HOOK );
	}
}