upgrade_450()WP 4.5.0

Executes changes made in WordPress 4.5.0.

No Hooks.

Return

null. Nothing (null).

Usage

upgrade_450();

Notes

  • Global. Int. $wp_current_db_version The old (current) database version.
  • Global. wpdb. $wpdb WordPress database abstraction object.

Changelog

Since 4.5.0 Introduced.

upgrade_450() code WP 6.5.2

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' );
}