upgrade_650()
Executes changes made in WordPress 6.5.0.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
upgrade_650();
Заметки
- Global. int. $wp_current_db_version The old (current) database version.
- Global. wpdb. $wpdb WordPress database abstraction object.
Список изменений
С версии 6.5.0 | Введена. |
Код upgrade_650() upgrade 650 WP 6.7.2
function upgrade_650() { global $wp_current_db_version, $wpdb; if ( $wp_current_db_version < 57155 ) { $stylesheet = get_stylesheet(); // Set autoload=no for all themes except the current one. $theme_mods_options = $wpdb->get_col( $wpdb->prepare( "SELECT option_name FROM $wpdb->options WHERE autoload = 'yes' AND option_name != %s AND option_name LIKE %s", "theme_mods_$stylesheet", $wpdb->esc_like( 'theme_mods_' ) . '%' ) ); $autoload = array_fill_keys( $theme_mods_options, false ); wp_set_option_autoload_values( $autoload ); } }