WordPress at a glance
function is not described

upgrade_440() WP 4.4.0

Executes changes made in WordPress 4.4.0.

  • Global. Int. $wp_current_db_version Current version.
  • Global. wpdb. $wpdb WordPress database abstraction object.

No Hooks.

Return

Nothing (null).

Usage

upgrade_440();

Code of upgrade 440: wp-admin/includes/upgrade.php WP 5.2.2

<?php
function upgrade_440() {
	global $wp_current_db_version, $wpdb;

	if ( $wp_current_db_version < 34030 ) {
		$wpdb->query( "ALTER TABLE {$wpdb->options} MODIFY option_name VARCHAR(191)" );
	}

	// Remove the unused 'add_users' role.
	$roles = wp_roles();
	foreach ( $roles->role_objects as $role ) {
		if ( $role->has_cap( 'add_users' ) ) {
			$role->remove_cap( 'add_users' );
		}
	}
}