WPSEO_Upgrade::upgrade_20()privateYoast 1.0

Moves options that moved position in WPSEO 2.0.

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

Хуков нет.


null. Ничего.


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

Код WPSEO_Upgrade::upgrade_20() Yoast 19.7.1

private function upgrade_20() {
	 * Clean up stray wpseo_ms options from the options table, option should only exist in the sitemeta table.
	 * This could have been caused in many version of Yoast SEO, so deleting it for everything below 2.0.
	delete_option( 'wpseo_ms' );

	$wpseo = $this->get_option_from_database( 'wpseo' );
	$this->save_option_setting( $wpseo, 'pinterestverify' );

	// Re-save option to trigger sanitization.
	$this->cleanup_option_data( 'wpseo' );