Commit 7f2c2467138 for woocommerce

commit 7f2c2467138df043f880843c021d289e0f3a8578
Author: Marco Almeida | Webdados <webdados@users.noreply.github.com>
Date:   Fri Jul 3 14:41:06 2026 +0100

    Remove "and in reviews" from display name description in My Account if product reviews are not active (#66233)

    * Remove "and in reviews" from display name description in My Account if product reviews are not active

    * Add changefile(s) from automation for the following project(s): woocommerce

    * Fix "edit account form" template version to 11.0.0

    ---------

    Co-authored-by: Marco Almeida <marcoalmeida@webdados.pt>
    Co-authored-by: woocommercebot <woocommercebot@users.noreply.github.com>
    Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com>

diff --git a/plugins/woocommerce/changelog/66233-fix-account-display-name-description b/plugins/woocommerce/changelog/66233-fix-account-display-name-description
new file mode 100644
index 00000000000..c1891774499
--- /dev/null
+++ b/plugins/woocommerce/changelog/66233-fix-account-display-name-description
@@ -0,0 +1,4 @@
+Significance: minor
+Type: tweak
+
+Remove "and in reviews" from the display name description in My Account if product reviews are not active
\ No newline at end of file
diff --git a/plugins/woocommerce/templates/myaccount/form-edit-account.php b/plugins/woocommerce/templates/myaccount/form-edit-account.php
index 4febfadcfc2..329300b48de 100644
--- a/plugins/woocommerce/templates/myaccount/form-edit-account.php
+++ b/plugins/woocommerce/templates/myaccount/form-edit-account.php
@@ -12,7 +12,7 @@
  *
  * @see https://woocommerce.com/document/template-structure/
  * @package WooCommerce\Templates
- * @version 10.5.0
+ * @version 11.0.0
  */

 defined( 'ABSPATH' ) || exit;
@@ -42,7 +42,8 @@ do_action( 'woocommerce_before_edit_account_form' );

 	<p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
 		<label for="account_display_name"><?php esc_html_e( 'Display name', 'woocommerce' ); ?>&nbsp;<span class="required" aria-hidden="true">*</span></label>
-		<input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="account_display_name" id="account_display_name" aria-describedby="account_display_name_description" value="<?php echo esc_attr( $user->display_name ); ?>" aria-required="true" /> <span id="account_display_name_description"><em><?php esc_html_e( 'This will be how your name will be displayed in the account section and in reviews', 'woocommerce' ); ?></em></span>
+		<input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="account_display_name" id="account_display_name" aria-describedby="account_display_name_description" value="<?php echo esc_attr( $user->display_name ); ?>" aria-required="true" />
+		<span id="account_display_name_description"><em><?php echo wc_reviews_enabled() ? esc_html__( 'This will be how your name will be displayed in the account section and in reviews', 'woocommerce' ) : esc_html__( 'This will be how your name will be displayed in the account section', 'woocommerce' ); ?></em></span>
 	</p>
 	<div class="clear"></div>