upgrade_590()WP 5.9.0

Executes changes made in WordPress 5.9.0.

No Hooks.

Return

null. Nothing.

Usage

upgrade_590();

Notes

  • Global. Int. $wp_current_db_version The old (current) database version.

Changelog

Since 5.9.0 Introduced.

upgrade_590() code WP 6.1.1

function upgrade_590() {
	global $wp_current_db_version;

	if ( $wp_current_db_version < 51917 ) {
		$crons = _get_cron_array();

		if ( $crons && is_array( $crons ) ) {
			// Remove errant `false` values, see #53950, #54906.
			$crons = array_filter( $crons );
			_set_cron_array( $crons );
		}
	}
}