upgrade_640()WP 6.4.0

Executes changes made in WordPress 6.4.0.

Хуков нет.

Возвращает

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

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

upgrade_640();

Заметки

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

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

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

Код upgrade_640() WP 6.7.2

function upgrade_640() {
	global $wp_current_db_version;

	if ( $wp_current_db_version < 56657 ) {
		// Enable attachment pages.
		update_option( 'wp_attachment_pages_enabled', 1 );

		// Remove the wp_https_detection cron. Https status is checked directly in an async Site Health check.
		$scheduled = wp_get_scheduled_event( 'wp_https_detection' );
		if ( $scheduled ) {
			wp_clear_scheduled_hook( 'wp_https_detection' );
		}
	}
}