# What's New in Trellis v1.20?

## Ubuntu 22.04 support

Trellis now fully supports [Ubuntu 22.04](https://releases.ubuntu.com/22.04/). Some of the changes required to support 22.04 include:

- Update to MariaDB 10.6 ([\#1460](https://github.com/roots/trellis/pull/1460))
- Vagrant: Update boxes to use 22.04 ([\#1461](https://github.com/roots/trellis/pull/1461))
- Vagrant: Disable NFS udp by default ([\#1472](https://github.com/roots/trellis/pull/1472))

If you are using Trellis for your local development environments, you will need to include all of the changes above in order to use Ubuntu 22.04.

## Composer authentications bugfix

Trellis supports Composer's HTTP basic authentication to [install premium WordPress plugins with Composer](https://roots.io/trellis/docs/composer-http-basic-authentication/), such as Advanced Custom Fields Pro. You may have ran into the following error when trying to use this feature:

```
TASK [wordpress-install : Setup composer authentications (HTTP Basic) - example.test] ***
[WARNING]: The loop variable 'item' is already in use. You should set the
`loop_var` value in the `loop_control` option for the task to something else to
avoid variable collisions and unexpected behavior.
fatal: [default]: FAILED! => The task includes an option with an undefined variable. The error was: {{ www_root }}/{{ item.key }}/{{ item.value.current_path | default('current') }}/: 'dict object' has no attribute 'key'

The error appears to be in 'trellis/roles/wordpress-install/tasks/composer-authentications.yml'
```

To fix this bug, [@dalepgrant](https://discourse.roots.io/u/dalepgrant) [provided a quick fix](https://discourse.roots.io/t/composer-issue-with-http-auth/24696/5) for `roles/wordpress-install/tasks/main.yml` that [@TangRufus](https://discourse.roots.io/u/TangRufus) submitted as a PR in [\#1469](https://github.com/roots/trellis/pull/1469).

## Install WordPress as the default user

When installing a fresh WP instance in CI environments, sometimes the uploads folder ownership was creating issues. Thanks to [@LucusDemea](https://discourse.roots.io/u/LucasDemea), this is now solved by installing WordPress as the default user in [\#1470](https://github.com/roots/trellis/pull/1470).

## XML-RPC is now disabled by default

Trellis v1.12.0 added disabling access to `xmlrpc.php` by default in [\#1467](https://github.com/roots/trellis/pull/1467). This option is configurable from each WordPress site config.