Commit 19b6839dc2 for woocommerce
commit 19b6839dc2b4879ce938b31f60bf6909475f44c7
Author: DAnn2012 <dannunziata@hotmail.it>
Date: Tue Nov 25 16:02:50 2025 +0100
Remove echo from esc_html_e() in some files (#61016)
diff --git a/plugins/woocommerce/changelog/61016-patch-27 b/plugins/woocommerce/changelog/61016-patch-27
new file mode 100644
index 0000000000..e28712864f
--- /dev/null
+++ b/plugins/woocommerce/changelog/61016-patch-27
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+Comment: Remove echo from esc_html_e() in some files
+
diff --git a/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php b/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php
index 11ef28fbcd..f7793f74db 100644
--- a/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php
+++ b/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php
@@ -1061,10 +1061,10 @@ class WC_Admin_Setup_Wizard {
<ul class="wc-wizard-services shipping">
<li class="wc-wizard-service-item">
<div class="wc-wizard-service-name">
- <p><?php echo esc_html_e( 'Shipping Zone', 'woocommerce' ); ?></p>
+ <p><?php esc_html_e( 'Shipping Zone', 'woocommerce' ); ?></p>
</div>
<div class="wc-wizard-service-description">
- <p><?php echo esc_html_e( 'Shipping Method', 'woocommerce' ); ?></p>
+ <p><?php esc_html_e( 'Shipping Method', 'woocommerce' ); ?></p>
</div>
</li>
<li class="wc-wizard-service-item">
@@ -1083,7 +1083,7 @@ class WC_Admin_Setup_Wizard {
</li>
<li class="wc-wizard-service-item">
<div class="wc-wizard-service-name">
- <p><?php echo esc_html_e( 'Locations not covered by your other zones', 'woocommerce' ); ?></p>
+ <p><?php esc_html_e( 'Locations not covered by your other zones', 'woocommerce' ); ?></p>
</div>
<div class="wc-wizard-service-description">
<?php $this->shipping_method_selection_form( $country_code, $currency_code, 'shipping_zones[intl]' ); ?>
diff --git a/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php b/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php
index 7d553ee535..bbd98c7836 100644
--- a/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php
+++ b/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php
@@ -255,7 +255,7 @@ class WC_Helper_Updater {
}
if ( ! WC_Woo_Update_Manager_Plugin::is_plugin_active() ) {
- echo esc_html_e( ' Activate WooCommerce.com Update Manager to update.', 'woocommerce' );
+ esc_html_e( ' Activate WooCommerce.com Update Manager to update.', 'woocommerce' );
}
}
diff --git a/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-inventory.php b/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-inventory.php
index 2900c929e8..7dc31fc918 100644
--- a/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-inventory.php
+++ b/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-inventory.php
@@ -45,7 +45,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<div class="inline notice woocommerce-message show_if_variable">
<img class="info-icon" src="<?php echo esc_url( $info_img_url ); ?>" />
<p>
- <?php echo esc_html_e( 'Settings below apply to all variations without manual stock management enabled. ', 'woocommerce' ); ?> <a target="_blank" href="https://woocommerce.com/document/variable-product/"><?php esc_html_e( 'Learn more', 'woocommerce' ); ?></a>
+ <?php esc_html_e( 'Settings below apply to all variations without manual stock management enabled. ', 'woocommerce' ); ?> <a target="_blank" href="https://woocommerce.com/document/variable-product/"><?php esc_html_e( 'Learn more', 'woocommerce' ); ?></a>
</p>
</div>
<?php
diff --git a/plugins/woocommerce/includes/admin/views/html-admin-dashboard-setup.php b/plugins/woocommerce/includes/admin/views/html-admin-dashboard-setup.php
index f524c1d836..0fe6a9fe36 100644
--- a/plugins/woocommerce/includes/admin/views/html-admin-dashboard-setup.php
+++ b/plugins/woocommerce/includes/admin/views/html-admin-dashboard-setup.php
@@ -15,13 +15,13 @@ if ( ! defined( 'ABSPATH' ) ) {
<circle r="6.5" cx="10" cy="10" fill="transparent" stroke-dasharray="40.859" stroke-dashoffset="0"></circle>
<circle class="bar" r="6.5" cx="190" cy="10" fill="transparent" stroke-dasharray="40.859" stroke-dashoffset="<?php echo esc_attr( $circle_dashoffset ); ?>" transform='rotate(-90 100 100)'></circle>
</svg>
- <span><?php echo esc_html_e( 'Step', 'woocommerce' ); ?> <?php echo esc_html( $step_number ); ?> <?php echo esc_html_e( 'of', 'woocommerce' ); ?> <?php echo esc_html( $tasks_count ); ?></span>
+ <span><?php esc_html_e( 'Step', 'woocommerce' ); ?> <?php echo esc_html( $step_number ); ?> <?php esc_html_e( 'of', 'woocommerce' ); ?> <?php echo esc_html( $tasks_count ); ?></span>
</span>
<div class="description">
<div>
- <?php echo esc_html_e( 'You\'re almost there! Once you complete store setup you can start receiving orders.', 'woocommerce' ); ?>
- <div><a href='<?php echo esc_attr( $button_link ); ?>' class='button button-primary'><?php echo esc_html_e( 'Start selling', 'woocommerce' ); ?></a></div>
+ <?php esc_html_e( 'You\'re almost there! Once you complete store setup you can start receiving orders.', 'woocommerce' ); ?>
+ <div><a href='<?php echo esc_attr( $button_link ); ?>' class='button button-primary'><?php esc_html_e( 'Start selling', 'woocommerce' ); ?></a></div>
</div>
<img src="<?php echo esc_url( WC()->plugin_url() ); ?>/assets/images/dashboard-widget-setup.png" />
</div>