WordPress at Your Fingertips
function is not described

upgrade_440() WP 4.4.0

Executes changes made in WordPress 4.4.0.

No Hooks.

Return

null. Nothing.

Usage

upgrade_440();

Notes

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

Changelog

Since 4.4.0 Introduced.

Code of upgrade_440() WP 5.8.2

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