upgrade_290()
Execute changes made in WordPress 2.9.
Хуков нет.
Возвращает
null. Ничего (null).
Использование
upgrade_290();
Заметки
- Global. int.
$wp_current_db_versionThe old (current) database version.
Список изменений
| С версии 2.9.0 | Введена. |
Код upgrade_290() upgrade 290 WP 6.9.4
function upgrade_290() {
global $wp_current_db_version;
if ( $wp_current_db_version < 11958 ) {
/*
* Previously, setting depth to 1 would redundantly disable threading,
* but now 2 is the minimum depth to avoid confusion.
*/
if ( 1 === (int) get_option( 'thread_comments_depth' ) ) {
update_option( 'thread_comments_depth', 2 );
update_option( 'thread_comments', 0 );
}
}
}