upgrade_640()
Executes changes made in WordPress 6.4.0.
Хуков нет.
Возвращает
null. Ничего (null).
Использование
upgrade_640();
Заметки
- Global. int.
$wp_current_db_versionThe old (current) database version.
Список изменений
| С версии 6.4.0 | Введена. |
Код upgrade_640() upgrade 640 WP 6.9.4
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' );
}
}
}