WordPress at a glance
function is not described

upgrade_500() WP 5.0.0

Executes changes made in WordPress 5.0.0.

  • Global. Int. $wp_current_db_version Current database version.

No Hooks.

Return

Nothing (null).

Usage

upgrade_500();

Code of upgrade 500: wp-admin/includes/upgrade.php VER 5.0.3

<?php
function upgrade_500() {
	global $wp_current_db_version;
	if ( $wp_current_db_version < 43764 ) {
		// Allow bypassing Gutenberg plugin deactivation.
		if ( defined( 'GUTENBERG_USE_PLUGIN' ) && GUTENBERG_USE_PLUGIN ) {
			return;
		}

 		$was_active = is_plugin_active( 'gutenberg/gutenberg.php' );
 		if ( $was_active ) {
 			// FIXME: Leave until 501 or 510 to clean up.
 			update_site_option( 'upgrade_500_was_gutenberg_active', '1' );
 		}

		deactivate_plugins( array( 'gutenberg/gutenberg.php' ), true );
	}
}