upgrade_670()WP 6.7.0

Executes changes made in WordPress 6.7.0.

Хуков нет.

Возвращает

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

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

upgrade_670();

Заметки

  • Global. int. $wp_current_db_version The old (current) database version.

Список изменений

С версии 6.7.0 Введена.

Код upgrade_670() WP 6.7.1

function upgrade_670() {
	global $wp_current_db_version;

	if ( $wp_current_db_version < 58975 ) {
		$options = array(
			'recently_activated',
			'_wp_suggested_policy_text_has_changed',
			'dashboard_widget_options',
			'ftp_credentials',
			'adminhash',
			'nav_menu_options',
			'wp_force_deactivated_plugins',
			'delete_blog_hash',
			'allowedthemes',
			'recovery_keys',
			'https_detection_errors',
			'fresh_site',
		);

		wp_set_options_autoload( $options, false );
	}
}