A WordPress-centric search engine for devs and theme authors



upgrade_440 ›

Since4.4.0
Deprecatedn/a
upgrade_440 ( No parameters )
Defined at:
Codex:

Executes changes made in WordPress 4.4.0.



Source

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