Developer advisory: Product review form template version update

In the upcoming WooCommerce 9.6, the single-product-reviews.php template markup has been updated to include an autocomplete attribute.

The details

The autocomplete attribute enables browsers to assist people in filling in forms for commonly asked personal information such as name, email address, physical address, phone, credit card details, etc.
This is an important accessibility feature that benefits all users.

Markup rendered by the template before these changes:

Markup rendered by the template after these changes:

How can I tell if this affects me?

This will affect you if you’re a theme or plugin developer, and you overwrote the single-product-reviews.php in your codebase.

Once you have updated your site to WooCommerce 9.6:

  1. Navigate to /wp-admin WooCommerce > Status
  2. Scroll down to the Templates section

If your theme or plugin needs to be updated, you’ll see a message that states:

yourtheme/woocommerce/single-product-reviews.php version 4.3.0 is out of date. The core version is 9.6.0

Screenshot showing the error message if your theme overwrites the template in question.

What action should I take?

If your theme needs to update the template, you need to add the autocomplete attribute to the author and email fields.

You can reference the changes in this pull request to view a diff compared to the previous template version.


Keep yourself in the loop!

This field is hidden when viewing the form
This field is hidden when viewing the form
This field is hidden when viewing the form


Leave a Reply

Your email address will not be published. Required fields are marked *