upgrade_450()
Executes changes made in WordPress 4.5.0.
No Hooks.
Returns
null. Nothing (null).
Usage
upgrade_450();
Notes
- Global. Int.
$wp_current_db_versionThe old (current) database version. - Global. wpdb.
$wpdbWordPress database abstraction object.
Changelog
| Since 4.5.0 | Introduced. |
upgrade_450() upgrade 450 code WP 7.0
function upgrade_450() {
global $wp_current_db_version, $wpdb;
if ( $wp_current_db_version < 36180 ) {
wp_clear_scheduled_hook( 'wp_maybe_auto_update' );
}
// Remove unused email confirmation options, moved to usermeta.
if ( $wp_current_db_version < 36679 && is_multisite() ) {
$wpdb->query( "DELETE FROM $wpdb->options WHERE option_name REGEXP '^[0-9]+_new_email$'" );
}
// Remove unused user setting for wpLink.
delete_user_setting( 'wplink' );
}